Closed jackywongmm closed 2 months ago
<Suspense> <GLTFModel @click="(e, r) => console.log(e, r)" path="/model/K1.glb" draco /> </Suspense>
I missed a label. That's the whole
and
<primitive @click="(e) => console.log(e)" :object="K2"> </primitive>
You're not using it the wrong way, currently event listeners on primitives
do not work in Tres.
We recently went through a event system rewrite for Tres v4 that fixes that and many issues like it.
Can you try installing the latest@tres/core
release candidate and checking if events work for you?
npm i @tresjs/core@4.0.0-rc.0
Problem solved. Thanks!
Glad to hear it!
Describe the bug
` Am I using it the wrong way?
Reproduction
null
Steps to reproduce
No response
System Info
No response
Used Package Manager
npm
Code of Conduct