[ios] Fix conflict between view dragging gesture and quick zoom (#5506)

This stops the quick zoom gesture (double-tap and hold) from also triggering a drag, when performed on a draggable annotation view.
This commit is contained in:
Jason Wray
2016-06-29 12:48:53 -04:00
committed by GitHub
parent bf079a285f
commit 1a6b513703

View File

@@ -238,7 +238,7 @@
- (BOOL)gestureRecognizer:(UIGestureRecognizer *)gestureRecognizer shouldRecognizeSimultaneouslyWithGestureRecognizer:(UIGestureRecognizer *)otherGestureRecognizer
{
return YES;
return otherGestureRecognizer == _longPressRecognizer || otherGestureRecognizer == _panGestureRecognizer;
}
- (id<CAAction>)actionForLayer:(CALayer *)layer forKey:(NSString *)event