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

Detecting mouse button in onClick #57

Open
WaDelma opened this issue Apr 6, 2021 · 1 comment
Open

Detecting mouse button in onClick #57

WaDelma opened this issue Apr 6, 2021 · 1 comment

Comments

@WaDelma
Copy link

WaDelma commented Apr 6, 2021

After #51 one can detect which mouse button was used when dragging. However this is not the case for onMouseDown or onClick. How would one go about detecting mouse button in that case?

@zaboco
Copy link
Owner

zaboco commented Apr 7, 2021

Well, there is already a way to get the button with customMouseConfig. The events onMouseDown and onClick are fired after that, so you already have access to the button (you must keep in your model).

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

No branches or pull requests

2 participants