I'm trying to add pointer events to a GLTF file loaded in react-three-fiber using GLTFJSX. However, the pointer events don't fire, and I can't figure out why.
I have tried adding the same events into other similar code sandboxes, and it works — so why wouldn't it work in this example, if I'm doing basically the same thing?
https://codesandbox.io/s/hopeful-brook-h8rhs?file=/src/App.js
- Expected behavior: When you hover over the model or click on it, it should be logged to the console.
- Actual behavior: Only the
onPointerMissedevent ever fires.
Sometimes, the onPointerOver and onPointerOut events do work. This seems to work at random — sometimes it works, but most of the time it just doesn't.
Am I missing something obvious?
Edit
When changed to mesh, the pointer events work. So the issue is related directly to skinnedMesh not detecting pointer events.

