events firing multiple times when adding LineSegments / WireframeGeometry to mesh #540
Replies: 3 comments 4 replies
-
If you just need a wireframe around the Box, you can use If you can, please create a reproduction on codesandbox and I'll look into it |
Beta Was this translation helpful? Give feedback.
-
move fires every time the input pointer moves, so 22 events can happen. onclick should fire once, see: https://codesandbox.io/s/r3f-basic-demo-rrppl0y8l4 |
Beta Was this translation helpful? Give feedback.
-
|
Beta Was this translation helpful? Give feedback.
-
I came across a situation where onClick / onPointerMove etc for "mesh" fires 22 times. Mesh is a regular box, and I'm adding wireframe to the box through a useEffect:
Not sure if it's caused by three or react-three-fiber, or if I'm implementing this totally wrong. Let me know if you need more code for reprod.
Beta Was this translation helpful? Give feedback.
All reactions