You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
{{ message }}
This repository has been archived by the owner on Aug 8, 2023. It is now read-only.
Try to limit the user’s ability to move outside a coordinate bounds with -[MGLMapViewDelegate mapView:shouldChangeFromCamera:toCamera:], as with this example.
Pinch zoom, such that it triggers inertial deceleration.
Expected behavior
Map is limited to specified coordinate bounds.
Actual behavior
User can break out of limited bounds with a pinch gesture that decelerates beyond said bounds. Once beyond the bounds, the deceleration movement for pinch gestures continues to work but the initial pinch is blocked.
Platform: iOS
Mapbox SDK version: 3.7.4, 3.7.5
Steps to trigger behavior
-[MGLMapViewDelegate mapView:shouldChangeFromCamera:toCamera:]
, as with this example.Expected behavior
Map is limited to specified coordinate bounds.
Actual behavior
User can break out of limited bounds with a pinch gesture that decelerates beyond said bounds. Once beyond the bounds, the deceleration movement for pinch gestures continues to work but the initial pinch is blocked.
Notes
ios-v3.7.4
.MGLMapView.decelerationRate
is set toMGLMapViewDecelerationRateImmediate
(i.e., disabling gesture deceleration)./cc @julianrex
The text was updated successfully, but these errors were encountered: