diff --git a/packages/fiber/src/native/Canvas.tsx b/packages/fiber/src/native/Canvas.tsx index 3ff565fe65..d50c71ba85 100644 --- a/packages/fiber/src/native/Canvas.tsx +++ b/packages/fiber/src/native/Canvas.tsx @@ -124,6 +124,9 @@ const CanvasImpl = /*#__PURE__*/ React.forwardRef( } } }, + setPointerCapture() { + // TODO + }, releasePointerCapture() { // TODO }, @@ -132,6 +135,7 @@ const CanvasImpl = /*#__PURE__*/ React.forwardRef( // TODO: this is wrong but necessary to trick controls // @ts-ignore canvas.ownerDocument = canvas + canvas.getRootNode = () => canvas root.current = createRoot(canvas) setCanvas(canvas) @@ -144,6 +148,7 @@ const CanvasImpl = /*#__PURE__*/ React.forwardRef( type, offsetX: gestureEvent.nativeEvent.locationX, offsetY: gestureEvent.nativeEvent.locationY, + pointerType: 'touch', }) as unknown as Event, )