Mesh onClick only work near the origin of Canvas #1837
-
Good evening!
where the Factory component return a mesh like this:
in which {children} is a Geometry plus a Material. Now, the onClick event on the mesh seems working only near the origin, if I move the mesh around in the canvas it won't work anymore. When I put the mesh back in the origin or near it, then the event resumes working. Thanks! |
Beta Was this translation helpful? Give feedback.
Replies: 1 comment 3 replies
-
make a super reduced codesandbox. the code above, it's impossible to say. most likely it's css. when you forget to declare certain areas absolute/relative, grids etc. or you have html elements on top that swallow the events. |
Beta Was this translation helpful? Give feedback.
make a super reduced codesandbox. the code above, it's impossible to say. most likely it's css. when you forget to declare certain areas absolute/relative, grids etc. or you have html elements on top that swallow the events.