Skip to content

Trigger a click event only if the pointer did not move #1139

Discussion options

You must be logged in to vote

Took me a bit but I found the delta property on the event.. e.delta

I am now checking if e.delta < 10 and it's working great.

I also realize this really has nothing do to with R3F...

Replies: 1 comment

Comment options

You must be logged in to vote
0 replies
Answer selected by maxwellhankner
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Category
Q&A
Labels
None yet
1 participant