-
Hi, I tried to create a basic scene and wanted to inform my 3D component that user cursor has left the canvas element. I tried using onMouse and onPointer Out/Leavebut none seems to be called. It seems it worked in react-three-fiber, but not in @react-three/fiber. Here is an example, console should log leaving canvas: https://codesandbox.io/s/busy-grothendieck-ky2k9?file=/src/App.tsx |
Beta Was this translation helpful? Give feedback.
Answered by
drcmda
Jul 31, 2021
Replies: 1 comment 2 replies
-
You can wrap it in a div and put the events on that one |
Beta Was this translation helpful? Give feedback.
2 replies
Answer selected by
srcnalt
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
You can wrap it in a div and put the events on that one