Skip to content
This repository has been archived by the owner on Jun 3, 2021. It is now read-only.

Commit

Permalink
[iOS] Fix issue the click(tap) may not trigger under some conditions.…
Browse files Browse the repository at this point in the history
…(Conflict with edge pan gesture.) (#2439)
  • Loading branch information
wqyfavor authored and jianhan-he committed May 15, 2019
1 parent 21e7ba4 commit 0ff3792
Showing 1 changed file with 5 additions and 1 deletion.
6 changes: 5 additions & 1 deletion ios/sdk/WeexSDK/Sources/Events/WXComponent+Events.m
Original file line number Diff line number Diff line change
Expand Up @@ -863,7 +863,11 @@ - (BOOL)gestureRecognizer:(UIGestureRecognizer *)gestureRecognizer shouldRequire
{
if ([gestureRecognizer isKindOfClass:[UITapGestureRecognizer class]] &&
[otherGestureRecognizer isKindOfClass:[UIPanGestureRecognizer class]]) {
return YES;
if (otherGestureRecognizer.state != UIGestureRecognizerStateFailed) {
if ([gestureRecognizer view].wx_component != nil && [otherGestureRecognizer view].wx_component != nil) {
return YES;
}
}
}

return NO;
Expand Down

0 comments on commit 0ff3792

Please sign in to comment.