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

Commit

Permalink
[ios] Don't pause camera animations when zoom/pitch/rotate/scroll are…
Browse files Browse the repository at this point in the history
… disabled
  • Loading branch information
captainbarbosa committed Nov 13, 2018
1 parent a3945bf commit 6419017
Showing 1 changed file with 5 additions and 0 deletions.
5 changes: 5 additions & 0 deletions platform/ios/src/MGLMapView.mm
Expand Up @@ -1376,6 +1376,11 @@ - (void)touchesBegan:(__unused NSSet<UITouch *> *)touches withEvent:(__unused UI
{
[self setUserTrackingMode:MGLUserTrackingModeNone animated:NO];
}

if (!self.zoomEnabled && !self.pitchEnabled && !self.rotateEnabled && !self.scrollEnabled) {
return;
};

[self cancelTransitions];
}

Expand Down

0 comments on commit 6419017

Please sign in to comment.