Skip to content

Commit

Permalink
fix(ios): optimize click event
Browse files Browse the repository at this point in the history
  • Loading branch information
m1ga committed Dec 13, 2024
1 parent 70db837 commit 42690ec
Showing 1 changed file with 3 additions and 0 deletions.
3 changes: 3 additions & 0 deletions iphone/TitaniumKit/TitaniumKit/Sources/API/TiUIView.m
Original file line number Diff line number Diff line change
Expand Up @@ -1617,6 +1617,9 @@ - (void)processTouchesEnded:(NSSet *)touches withEvent:(UIEvent *)event
} else if ([touch tapCount] == 2 && [proxy _hasListeners:@"dblclick"]) {
[proxy fireEvent:@"dblclick" withObject:evt propagate:YES];
return;
} else if ([touch tapCount] > 2 && [proxy _hasListeners:@"click"]) {
[proxy fireEvent:@"click" withObject:evt propagate:YES];
return;
}
}
}
Expand Down

0 comments on commit 42690ec

Please sign in to comment.