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

ClickEvent should be generated when the secondary or middle buttons are pressed #247

Open
Enzo-Demeulenaere opened this issue May 4, 2023 · 3 comments

Comments

@Enzo-Demeulenaere
Copy link
Contributor

Now it is only working for the primary button.

Right click is only recognized by having the mouseDown and mouseUp event

@plantec
Copy link
Collaborator

plantec commented May 23, 2023

I'm not sure because right mouse button can be used to open a contextual menu

@tinchodias
Copy link
Collaborator

Hello, I read this issue a bit late, sorry...!

I reported this here:
#151

The conversation links to a pull request where I proposed a fix, but finally wasn't sure if it could cause problems, and closed it.

For example, for opening a context menu, typically (in my opinion), listening the "mouse down" is the desired behavior. I mean, the context menu si opened immediately after the right button is pressed, not when the button is released. In that sense, it's different from the usual behavior for the main button action, that is triggered when the left button is released (so click is done).

@plantec
Copy link
Collaborator

plantec commented Jun 30, 2023

this should be fixed now.
click event is sent whatever the button.
@Enzo-Demeulenaere can you check ?

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

3 participants