[ios] Don't disable user tracking on setDirection: or quick zoom gesture
This commit is contained in:
@@ -1371,8 +1371,6 @@ std::chrono::steady_clock::duration secondsAsDuration(float duration)
|
||||
self.scale = _mbglMap->getScale();
|
||||
|
||||
self.quickZoomStart = [quickZoom locationInView:quickZoom.view].y;
|
||||
|
||||
self.userTrackingMode = MGLUserTrackingModeNone;
|
||||
}
|
||||
else if (quickZoom.state == UIGestureRecognizerStateChanged)
|
||||
{
|
||||
@@ -1772,7 +1770,10 @@ mbgl::LatLngBounds MGLLatLngBoundsFromCoordinateBounds(MGLCoordinateBounds coord
|
||||
{
|
||||
if ( ! animated && ! self.rotationAllowed) return;
|
||||
|
||||
self.userTrackingMode = MGLUserTrackingModeNone;
|
||||
if (self.userTrackingMode == MGLUserTrackingModeFollowWithHeading)
|
||||
{
|
||||
self.userTrackingMode = MGLUserTrackingModeFollow;
|
||||
}
|
||||
|
||||
CGFloat duration = (animated ? MGLAnimationDuration : 0);
|
||||
|
||||
|
||||
Reference in New Issue
Block a user