From 2cfc417b2a5e478c104254317113f84c283e5a41 Mon Sep 17 00:00:00 2001 From: AbdullahFaqeir Date: Mon, 16 Sep 2024 01:54:42 +0300 Subject: [PATCH] fix(android): remove listener from touch end event --- iphone/TitaniumKit/TitaniumKit/Sources/API/TiUIView.m | 7 +------ 1 file changed, 1 insertion(+), 6 deletions(-) diff --git a/iphone/TitaniumKit/TitaniumKit/Sources/API/TiUIView.m b/iphone/TitaniumKit/TitaniumKit/Sources/API/TiUIView.m index 5904cfafac7..3f0331e6921 100644 --- a/iphone/TitaniumKit/TitaniumKit/Sources/API/TiUIView.m +++ b/iphone/TitaniumKit/TitaniumKit/Sources/API/TiUIView.m @@ -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; }