Quicken quick zoom gesture
Double tapping and holding, then moving up/down will now immediately zoom out/in.
This commit is contained in:
@@ -370,7 +370,8 @@ std::chrono::steady_clock::duration secondsAsDuration(float duration)
|
||||
{
|
||||
_quickZoom = [[UILongPressGestureRecognizer alloc] initWithTarget:self action:@selector(handleQuickZoomGesture:)];
|
||||
_quickZoom.numberOfTapsRequired = 1;
|
||||
_quickZoom.minimumPressDuration = 0.25;
|
||||
_quickZoom.minimumPressDuration = 0;
|
||||
[_quickZoom requireGestureRecognizerToFail:doubleTap];
|
||||
[self addGestureRecognizer:_quickZoom];
|
||||
}
|
||||
|
||||
|
||||
Reference in New Issue
Block a user