mirror of
https://github.com/NativeScript/NativeScript.git
synced 2025-08-17 04:41:36 +08:00
fix(ios-actionbar): parent/child gesture recognition (#7400)
This commit is contained in:
@ -17,11 +17,6 @@ class UIGestureRecognizerDelegateImpl extends NSObject implements UIGestureRecog
|
|||||||
public static ObjCProtocols = [UIGestureRecognizerDelegate];
|
public static ObjCProtocols = [UIGestureRecognizerDelegate];
|
||||||
|
|
||||||
public gestureRecognizerShouldRecognizeSimultaneouslyWithGestureRecognizer(gestureRecognizer: UIGestureRecognizer, otherGestureRecognizer: UIGestureRecognizer): boolean {
|
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;
|
return true;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
Reference in New Issue
Block a user