Skip to content

Commit

Permalink
fix: missing methods for controls
Browse files Browse the repository at this point in the history
  • Loading branch information
CodyJasonBennett committed Aug 10, 2024
1 parent c4a662a commit 6d1aab5
Showing 1 changed file with 5 additions and 0 deletions.
5 changes: 5 additions & 0 deletions packages/fiber/src/native/Canvas.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -124,6 +124,9 @@ const CanvasImpl = /*#__PURE__*/ React.forwardRef<View, Props>(
}
}
},
setPointerCapture() {
// TODO
},
releasePointerCapture() {
// TODO
},
Expand All @@ -132,6 +135,7 @@ const CanvasImpl = /*#__PURE__*/ React.forwardRef<View, Props>(
// TODO: this is wrong but necessary to trick controls
// @ts-ignore
canvas.ownerDocument = canvas
canvas.getRootNode = () => canvas

root.current = createRoot<HTMLCanvasElement>(canvas)
setCanvas(canvas)
Expand All @@ -144,6 +148,7 @@ const CanvasImpl = /*#__PURE__*/ React.forwardRef<View, Props>(
type,
offsetX: gestureEvent.nativeEvent.locationX,
offsetY: gestureEvent.nativeEvent.locationY,
pointerType: 'touch',
}) as unknown as Event,
)

Expand Down

0 comments on commit 6d1aab5

Please sign in to comment.