-
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
Make double-tapping on make zoom in by a factor of 2 on iOS #2784
Comments
I think this may be a bug. It was working as intended (zooming by a factor of 2) before – but now, you'll need to double-tap and hold on the last tap for the map movement to continue zooming by a factor of 2. |
Any workaround for this? Still a thing in Chrome on iOS using v0.36.0 |
I put some logging in all of the event handlers, and this is what happens on iOS Safari when I double-tap: double click handler When I commented out the Some policy decisions have to be made by the maintainers. Currently, any zoom or pan can be canceled by a click. The simplest solution would be to set a flag in the double click handler that the map mousedown handler checks, and if the flag is set, the map mousedown handler doesn't call Thoughts? |
In WebKit on iOS, double-tapping the map zooms in by a very small amount, probably a factor of 1.1. Double-tapping should zoom in by a factor of 2, for consistency with double-clicks in desktop browsers and double-taps in the Mapbox iOS SDK.
Reproduced in v0.19.1 in Safari on iOS 9.3.
/cc @lucaswoj
The text was updated successfully, but these errors were encountered: