-
Notifications
You must be signed in to change notification settings - Fork 2.2k
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
Map zoom fires "movestart" many times, but "moveend" only once #8256
Comments
This definitely looks like a bug. Thanks for the report! Might have regressed in recent versions. |
No prob. If you think the fix is simple enough for a first timer of the project, I'd be happy to look in to it. |
This doesn't appear to be a recent regression. I tested back to v0.35.0 and observed this behavior. The event is being fired here. |
I'll take a look! |
@ryanhamley it definitely used to work before. So far I traced this back to somewhere between v0.14 (working fine) and v0.15 (buggy). Which apparently means this is the first known occurrence of someone depending on that event in 3+ years 😆 |
@mourner I did not realize this was a bug and just filtered it out in my code. |
I am observing this only on the real android. When I test it on a desktop webbrowser emulating an android, the problem doesn't show up. The problem is intermitent. Some times zoom triggers moveend, sometime it doesn't. |
I'm not sure if this is a bug, but it was unexpected behavior to me.
I'm attaching event listeners to
movestart
andmoveend
.I'm finding that while dragging / panning the map, the event listeners trigger when I would expect them to trigger (when user starts moving the map
movestart
fires, then when they release the mapmoveend
fires)However while zooming it looks like
movestart
is firing many many times whilemoveend
is still only firing once.This seems somewhat related to #6512, but with the zoom api instead of resize.
mapbox-gl-js version:
0.53.1
browser:
Chrome
Steps to Trigger Behavior
Link to Demonstration
https://jsfiddle.net/bambielli767/Lc5yutef/9/
Expected Behavior
movestart
andmoveend
are both triggered once, when zooming starts and when zooming finishes.Actual Behavior
movestart
is triggered many many times, whilemoveend
is still only triggered once.The text was updated successfully, but these errors were encountered: