Skip to content

No intersection from <Canvas onPointerMove > #1190

Answered by drcmda
maxibenner asked this question in Q&A
Discussion options

You must be logged in to vote

there are no events on the canvas component, which is just a portal with a resize-observer basically. not even generic dom events. you can put them on meshes and groups. if you want to raycast the entire scene (which isnt often the best idea) wrap everything into a group:

<Canvas>
  <group onPointerMove={...}>
    ...

Replies: 1 comment 1 reply

Comment options

You must be logged in to vote
1 reply
@maxibenner
Comment options

Answer selected by maxibenner
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Category
Q&A
Labels
None yet
2 participants