You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
The delta property of the pointer-missed is always zero (obvious in the code).
I have a project where object of the scene can be selected by clicking on them. To unselect the user can press where there is no object, which I implemented using the pointer-missed event on the Trescanvas. However, objects get also unselected when the user uses the mouse to drag the camera around. To prevent this I wanted to rely on the delta of the pointer-missed event, to discard events with dragging.
Describe the bug
The delta property of the
pointer-missed
is always zero (obvious in the code).I have a project where object of the scene can be selected by clicking on them. To unselect the user can press where there is no object, which I implemented using the
pointer-missed
event on theTrescanvas
. However, objects get also unselected when the user uses the mouse to drag the camera around. To prevent this I wanted to rely on thedelta
of thepointer-missed
event, to discard events with dragging.Reproduction
https://github.com/Tresjs/tres/blob/main/src/composables/useRaycaster/index.ts#L137-L139
Steps to reproduce
No response
System Info
No response
Used Package Manager
pnpm
Code of Conduct
The text was updated successfully, but these errors were encountered: