More accurate touch bookkeeping in RCTTouchHandler
Reviewed By: javache Differential Revision: D4381374 fbshipit-source-id: d959381617eda93658d519e7a3c565093eb9fae8
This commit is contained in:
parent
78118d5023
commit
482c73de86
|
@ -92,7 +92,7 @@ typedef NS_ENUM(NSInteger, RCTTouchEventType) {
|
|||
|
||||
NSNumber *reactTag = [targetView reactTagAtPoint:[touch locationInView:targetView]];
|
||||
if (!reactTag || !targetView.userInteractionEnabled) {
|
||||
return;
|
||||
continue;
|
||||
}
|
||||
|
||||
// Get new, unique touch identifier for the react touch
|
||||
|
@ -322,6 +322,10 @@ static BOOL RCTAnyTouchesChanged(NSSet<UITouch *> *touches)
|
|||
- (void)reset
|
||||
{
|
||||
_dispatchedInitialTouches = NO;
|
||||
|
||||
[_nativeTouches removeAllObjects];
|
||||
[_reactTouches removeAllObjects];
|
||||
[_touchViews removeAllObjects];
|
||||
}
|
||||
|
||||
- (void)cancel
|
||||
|
|
Loading…
Reference in New Issue