mirror of
https://github.com/status-im/react-native.git
synced 2025-01-14 03:26:07 +00:00
RCTTouchHandler doesn't delay any touches anymore
Reviewed By: mmmulani Differential Revision: D4418211 fbshipit-source-id: 07fdd81d975c6b65477e599e2dcb604b64556e9e
This commit is contained in:
parent
8045a7084a
commit
930010ec91
@ -53,10 +53,12 @@
|
||||
_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;
|
||||
}
|
||||
|
Loading…
x
Reference in New Issue
Block a user