Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

[Bug] Zoom level not monotonic on mouse wheel (?) event (i.e., mac touchpad) #8989

Open
1 of 7 tasks
ilan-gold opened this issue Jun 28, 2024 · 0 comments
Open
1 of 7 tasks
Labels

Comments

@ilan-gold
Copy link
Collaborator

ilan-gold commented Jun 28, 2024

Description

Hello again! When I log the zoom level from a mouse wheel event (sorry if the name is wrong, I am using a mac touchpad on my laptop), the zoom level is not monotonic. I have a suspicion that this is throwing off some layers I have that rely on the zoom level for rendering.

Flavors

  • Script tag
  • React
  • Python/Jupyter notebook
  • MapboxOverlay
  • GoogleMapsOverlay
  • CartoLayer
  • ArcGIS

Expected Behavior

I would expect the zoom level to be monotonic increasing/decreasing, but instead get:
Screenshot 2024-06-28 at 14 57 44

Steps to Reproduce

In my case I altered the DeckGL component in examples/website/orthographic to have onViewStateChange={({viewState}) => console.log(viewState.zoom)} and saw the above screenshot. The interleaving effect of zoom levels was apparent.

Environment

  • Framework version: main branch at time of writing (but also dating back somewhat far - the effect seems to be playing out on avivator.gehlenborglab.org on FF with the scale bar or with side-by-side on chrome where they move out of sync).
  • Browser: FF 127.0.2 or Chrome 125.0.6422.176
  • OS: MacOS 13.6.1 (22G313)

Logs

-0.9221760184089745 app.tsx:198:50
-0.668107634660729 app.tsx:198:50
-0.9221760184089745 app.tsx:198:50
-1.1586145932543173 app.tsx:198:50
-0.9221760184089745 app.tsx:198:50
-1.1586145932543173 app.tsx:198:50
-1.3831254525200256 app.tsx:198:50
-1.1586145932543173 app.tsx:198:50
-1.3831254525200256 app.tsx:198:50
-1.5955684191940207 app.tsx:198:50
-1.3831254525200256 app.tsx:198:50
-1.5955684191940207 app.tsx:198:50
-1.7958028571084879 app.tsx:198:50
-1.5955684191940207 app.tsx:198:50
-1.7958028571084879 app.tsx:198:50
-1.9836876969406194 app.tsx:198:50
-1.7958028571084879 app.tsx:198:50
-1.9836876969406194 app.tsx:198:50
-2 app.tsx:198:50
-1.9836876969406194 app.tsx:198:50
-2

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Projects
None yet
Development

No branches or pull requests

1 participant