From 930010ec9113a26e67373154bec3ba21901ae04e Mon Sep 17 00:00:00 2001 From: Valentin Shergin Date: Fri, 13 Jan 2017 17:35:06 -0800 Subject: [PATCH] RCTTouchHandler doesn't delay any touches anymore Reviewed By: mmmulani Differential Revision: D4418211 fbshipit-source-id: 07fdd81d975c6b65477e599e2dcb604b64556e9e --- React/Base/RCTTouchHandler.m | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/React/Base/RCTTouchHandler.m b/React/Base/RCTTouchHandler.m index 5198fb104cd1fd..b2ccdfb64152f2 100644 --- a/React/Base/RCTTouchHandler.m +++ b/React/Base/RCTTouchHandler.m @@ -53,10 +53,12 @@ - (instancetype)initWithBridge:(RCTBridge *)bridge _reactTouches = [NSMutableArray new]; _touchViews = [NSMutableArray new]; - // `cancelsTouchesInView` is needed in order to be used as a top level + // `cancelsTouchesInView` and `delaysTouches*` are needed in order to be used as a top level // event delegated recognizer. Otherwise, lower-level components not built // using RCT, will fail to recognize gestures. self.cancelsTouchesInView = NO; + self.delaysTouchesBegan = NO; // This is default value. + self.delaysTouchesEnded = NO; self.delegate = self; }