From 42690ec9aa38229537a263516633c1736d5abec7 Mon Sep 17 00:00:00 2001 From: Michael Gangolf Date: Fri, 13 Dec 2024 11:20:04 +0100 Subject: [PATCH] fix(ios): optimize click event --- iphone/TitaniumKit/TitaniumKit/Sources/API/TiUIView.m | 3 +++ 1 file changed, 3 insertions(+) diff --git a/iphone/TitaniumKit/TitaniumKit/Sources/API/TiUIView.m b/iphone/TitaniumKit/TitaniumKit/Sources/API/TiUIView.m index f433f0bd01f..209b18309f0 100644 --- a/iphone/TitaniumKit/TitaniumKit/Sources/API/TiUIView.m +++ b/iphone/TitaniumKit/TitaniumKit/Sources/API/TiUIView.m @@ -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; } } }