-
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
Can't pinch-to-zoom in iOS Safari 11.3 #6488
Comments
+1 I'm actually experiencing the same thing. Built with http://alex3165.github.io/react-mapbox-gl/ Map works perfectly on desktop, however when attempting to make a mobile site responsive pinching causes entire page to zoom, generally triggering browser reloads or other functionality. @andrewpomeroy I Do you have your meta tag set?
Looks like this is proving to be the right path. For met it's still not perfect, but it's helping. |
I’m having the same issue too |
This should be fixed in v0.44.2, available on npm and at https://api.tiles.mapbox.com/mapbox-gl-js/v0.44.2/mapbox-gl.js (I missed the update to https://www.mapbox.com/mapbox-gl-js/api/, so it's still showing 0.44.1 as the latest version -- will update shortly) |
@anandthakker Is it possible to briefly explain what was the root cause of this and what fixed it? |
@mb12 sure. The root cause is that webkit made document touch event listeners "passive" by default. The fix in #6248 (plus the fixup in #6450) works around this breaking change by detecting support for the |
mapbox-gl-js version: v0.44.1
Steps to Trigger Behavior
Expected Behavior
Map zooms, with all features scaling accordingly
Actual Behavior
Zoom is applied to the entire page containing the map, so the map borders extend past the visible viewport, and feature rendering doesn't scale accordingly.
The text was updated successfully, but these errors were encountered: