Skip to content

How to disable click event when I am panning my camera #1628

Answered by bhushan6
bhushan6 asked this question in Q&A
Discussion options

You must be logged in to vote

Found out the solution and realized i am dumb af. XD anyway just what I did is set the global state of pan and the event listener where camera is panning im setting pan to true and other wise false and when put the if statement on all click events and it worked

Replies: 2 comments 2 replies

Comment options

You must be logged in to vote
2 replies
@bhushan6
Comment options

@bhushan6
Comment options

Comment options

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