More accurate touch bookkeeping in RCTTouchHandler

Reviewed By: javache

Differential Revision: D4381374

fbshipit-source-id: d959381617eda93658d519e7a3c565093eb9fae8
This commit is contained in:
Valentin Shergin 2017-01-04 14:40:32 -08:00 committed by Facebook Github Bot
parent 78118d5023
commit 482c73de86
1 changed files with 6 additions and 2 deletions

View File

@ -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