Open edkimmel opened 6 years ago
Hi Edward, could you provide a link to minimal example reproducing this issue?
Pinch zooming (On mobile) on the map at http://leafletjs.com/ frequently causes the problem. It seems to happen more when zoomed in further (Not the max zoom bounce effect).
I don't see any problems with pinch zoom.
(Chrome on laptop with touchscreen)
Android, mobile chrome. Seems to happen if you are slow to pick up your fingers:
How to reproduce
Slightly pinch zoom the map. When you let go, the map will snap back to its original zoom level instead of animating back to it.
The map transform is not updated during pinch zooms. So while I'm pinching from zoom 16 to 16.3, the map's proxy's transform is still set as if the map was zoom 16.
When I let go and leaflet animates back to zoom 16, the following code catches the "no-op" and tries to handle it:
In
_createAnimProxy
:If I remove that check, the animations play as expected. Since the following code is also trying to account for the lack of transitionend event, is it safe to remove the above code?
In
_animateZoom
: