Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

The delta of pointer-missed events is always zero #852

Open
5 tasks done
AntoninRousset opened this issue Oct 12, 2024 · 0 comments · May be fixed by #853
Open
5 tasks done

The delta of pointer-missed events is always zero #852

AntoninRousset opened this issue Oct 12, 2024 · 0 comments · May be fixed by #853

Comments

@AntoninRousset
Copy link

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 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.

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

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging a pull request may close this issue.

1 participant