From 1b8e61c93054a15fa2de5d9d995e545f0bba2da0 Mon Sep 17 00:00:00 2001 From: Samuel Susla Date: Mon, 28 Oct 2024 04:41:14 -0700 Subject: [PATCH] add missing breaks in PointerEvent (#47233) Summary: changelog: [internal] This looks like a missing break statement when it was refactored in https://github.com/facebook/react-native/pull/41519 Differential Revision: D65040504 --- packages/react-native/React/Fabric/RCTSurfacePointerHandler.mm | 2 ++ 1 file changed, 2 insertions(+) diff --git a/packages/react-native/React/Fabric/RCTSurfacePointerHandler.mm b/packages/react-native/React/Fabric/RCTSurfacePointerHandler.mm index 78dec24a9bd3db..7206b5c7fa4a49 100644 --- a/packages/react-native/React/Fabric/RCTSurfacePointerHandler.mm +++ b/packages/react-native/React/Fabric/RCTSurfacePointerHandler.mm @@ -762,8 +762,10 @@ - (void)hovering:(UIHoverGestureRecognizer *)recognizer switch (recognizer.state) { case UIGestureRecognizerStateEnded: eventEmitter->onPointerLeave(event); + break; default: eventEmitter->onPointerMove(event); + break; } } }