diff --git a/apple/Handlers/RNNativeViewHandler.mm b/apple/Handlers/RNNativeViewHandler.mm index de49cc36a7..846b8496c4 100644 --- a/apple/Handlers/RNNativeViewHandler.mm +++ b/apple/Handlers/RNNativeViewHandler.mm @@ -62,11 +62,6 @@ - (void)touchesCancelled:(NSSet *)touches withEvent:(UIEvent *)ev } #else -- (BOOL)hasPointerInside -{ - return NSPointInRect([self locationInView:self.view], self.view.bounds); -} - - (void)mouseDown:(NSEvent *)event { [_gestureHandler setCurrentPointerTypeToMouse]; @@ -231,7 +226,7 @@ - (void)handleTouchCancel:(UIView *)sender forEvent:(UIEvent *)event - (RNGestureHandlerEventExtraData *)eventExtraData:(RNDummyGestureRecognizer *)recognizer { - return [RNGestureHandlerEventExtraData forPointerInside:[recognizer hasPointerInside] + return [RNGestureHandlerEventExtraData forPointerInside:[self containsPointInView] withPointerType:RNGestureHandlerMouse]; }