Skip to content

Commit

Permalink
fix(android): remove listener from touch end event
Browse files Browse the repository at this point in the history
  • Loading branch information
AbdullahFaqeir committed Sep 15, 2024
1 parent 62a6e6b commit 2cfc417
Showing 1 changed file with 1 addition and 6 deletions.
7 changes: 1 addition & 6 deletions iphone/TitaniumKit/TitaniumKit/Sources/API/TiUIView.m
Original file line number Diff line number Diff line change
Expand Up @@ -1612,12 +1612,7 @@ - (void)processTouchesEnded:(NSSet *)touches withEvent:(UIEvent *)event
// Click handling is special; don't propagate if we have a delegate,
// but DO invoke the touch delegate.
// clicks should also be handled by any control the view is embedded in.
if ([touch tapCount] == 1 && [proxy _hasListeners:@"click"]) {
if (touchDelegate == nil) {
[proxy fireEvent:@"click" withObject:evt propagate:YES];
return;
}
} else if ([touch tapCount] == 2 && [proxy _hasListeners:@"dblclick"]) {
if ([touch tapCount] == 2 && [proxy _hasListeners:@"dblclick"]) {
[proxy fireEvent:@"dblclick" withObject:evt propagate:YES];
return;
}
Expand Down

0 comments on commit 2cfc417

Please sign in to comment.