mirror of
https://github.com/NativeScript/NativeScript.git
synced 2025-11-05 13:26:48 +08:00
fix(ios): handle tap and longpress gesture conflict (#10004)
This commit is contained in:
@@ -33,6 +33,9 @@ class UIGestureRecognizerDelegateImpl extends NSObject implements UIGestureRecog
|
||||
if (gestureRecognizer instanceof UITapGestureRecognizer && otherGestureRecognizer instanceof UITapGestureRecognizer && otherGestureRecognizer.numberOfTapsRequired === 2) {
|
||||
return true;
|
||||
}
|
||||
if (gestureRecognizer instanceof UITapGestureRecognizer && otherGestureRecognizer instanceof UILongPressGestureRecognizer) {
|
||||
return true;
|
||||
}
|
||||
|
||||
return false;
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user