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

Commit

Permalink
Make quickzoom zoom slightly more quickly
Browse files Browse the repository at this point in the history
  • Loading branch information
friedbunny committed Sep 25, 2015
1 parent 417f26f commit ed702a6
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion platform/ios/MGLMapView.mm
Original file line number Diff line number Diff line change
Expand Up @@ -1339,7 +1339,7 @@ - (void)handleQuickZoomGesture:(UILongPressGestureRecognizer *)quickZoom
{
CGFloat distance = [quickZoom locationInView:quickZoom.view].y - self.quickZoomStart;

CGFloat newZoom = log2f(self.scale) + (distance / 100);
CGFloat newZoom = log2f(self.scale) + (distance / 75);

if (newZoom < _mbglMap->getMinZoom()) return;

Expand Down

0 comments on commit ed702a6

Please sign in to comment.