diff --git a/React/Fabric/RCTSurfaceTouchHandler.mm b/React/Fabric/RCTSurfaceTouchHandler.mm index 14606914ab8..d25653a7457 100644 --- a/React/Fabric/RCTSurfaceTouchHandler.mm +++ b/React/Fabric/RCTSurfaceTouchHandler.mm @@ -196,14 +196,14 @@ RCT_NOT_IMPLEMENTED(- (instancetype)initWithTarget:(id)target action:(SEL)action - (void)_updateTouches:(NSSet *)touches { for (UITouch *touch in touches) { - UpdateActiveTouchWithUITouch(_activeTouches[touch], touch, _rootComponentView); + UpdateActiveTouchWithUITouch(_activeTouches.at(touch), touch, _rootComponentView); } } - (void)_unregisterTouches:(NSSet *)touches { for (UITouch *touch in touches) { - const auto &activeTouch = _activeTouches[touch]; + const auto &activeTouch = _activeTouches.at(touch); _identifierPool.enqueue(activeTouch.touch.identifier); _activeTouches.erase(touch); }