fix(ios-actionbar): parent/child gesture recognition (#7400)

This commit is contained in:
Manol Donev
2019-06-26 11:07:12 +03:00
committed by GitHub
parent 9ecf07fee6
commit 872207515a

View File

@ -17,11 +17,6 @@ class UIGestureRecognizerDelegateImpl extends NSObject implements UIGestureRecog
public static ObjCProtocols = [UIGestureRecognizerDelegate];
public gestureRecognizerShouldRecognizeSimultaneouslyWithGestureRecognizer(gestureRecognizer: UIGestureRecognizer, otherGestureRecognizer: UIGestureRecognizer): boolean {
// If both gesture recognizers are of type UITapGestureRecognizer, do not allow
// simultaneous recognition.
if (gestureRecognizer instanceof UITapGestureRecognizer && otherGestureRecognizer instanceof UITapGestureRecognizer) {
return false;
}
return true;
}