File tree Expand file tree Collapse file tree 1 file changed +6
-2
lines changed
Expand file tree Collapse file tree 1 file changed +6
-2
lines changed Original file line number Diff line number Diff line change @@ -92,7 +92,7 @@ - (void)_recordNewTouches:(NSSet<UITouch *> *)touches
9292
9393 NSNumber *reactTag = [targetView reactTagAtPoint: [touch locationInView: targetView]];
9494 if (!reactTag || !targetView.userInteractionEnabled ) {
95- return ;
95+ continue ;
9696 }
9797
9898 // Get new, unique touch identifier for the react touch
@@ -125,7 +125,7 @@ - (void)_recordRemovedTouches:(NSSet<UITouch *> *)touches
125125{
126126 for (UITouch *touch in touches) {
127127 NSUInteger index = [_nativeTouches indexOfObject: touch];
128- if (index == NSNotFound ) {
128+ if (index == NSNotFound ) {
129129 continue ;
130130 }
131131
@@ -322,6 +322,10 @@ - (BOOL)canBePreventedByGestureRecognizer:(__unused UIGestureRecognizer *)preven
322322- (void )reset
323323{
324324 _dispatchedInitialTouches = NO ;
325+
326+ [_nativeTouches removeAllObjects ];
327+ [_reactTouches removeAllObjects ];
328+ [_touchViews removeAllObjects ];
325329}
326330
327331- (void )cancel
You can’t perform that action at this time.
0 commit comments