Skip to content
This repository has been archived by the owner on Aug 8, 2023. It is now read-only.

Pinch gesture can escape delegate-limited bounds #11422

Closed
friedbunny opened this issue Mar 8, 2018 · 1 comment
Closed

Pinch gesture can escape delegate-limited bounds #11422

friedbunny opened this issue Mar 8, 2018 · 1 comment
Assignees
Labels
bug iOS Mapbox Maps SDK for iOS
Milestone

Comments

@friedbunny
Copy link
Contributor

friedbunny commented Mar 8, 2018

Platform: iOS
Mapbox SDK version: 3.7.4, 3.7.5

Steps to trigger behavior

  1. Try to limit the user’s ability to move outside a coordinate bounds with -[MGLMapViewDelegate mapView:shouldChangeFromCamera:toCamera:], as with this example.
  2. 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.

Notes

/cc @julianrex

@friedbunny
Copy link
Contributor Author

Fixed by #11423, will be in the forthcoming ios-v3.7.6 release.

Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
bug iOS Mapbox Maps SDK for iOS
Projects
None yet
Development

No branches or pull requests

1 participant