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

Commit

Permalink
Quicken quick zoom gesture
Browse files Browse the repository at this point in the history
Double tapping and holding, then moving up/down will now immediately zoom out/in.
  • Loading branch information
friedbunny committed Sep 25, 2015
1 parent 01ff7b1 commit 417f26f
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion platform/ios/MGLMapView.mm
Original file line number Diff line number Diff line change
Expand Up @@ -370,7 +370,8 @@ - (void)commonInit
{
_quickZoom = [[UILongPressGestureRecognizer alloc] initWithTarget:self action:@selector(handleQuickZoomGesture:)];
_quickZoom.numberOfTapsRequired = 1;
_quickZoom.minimumPressDuration = 0.25;
_quickZoom.minimumPressDuration = 0;
[_quickZoom requireGestureRecognizerToFail:doubleTap];
[self addGestureRecognizer:_quickZoom];
}

Expand Down

0 comments on commit 417f26f

Please sign in to comment.