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 right click when mouse is moving #346

Open
Slechani opened this issue Mar 14, 2024 · 1 comment
Open

Detecting right click when mouse is moving #346

Slechani opened this issue Mar 14, 2024 · 1 comment

Comments

@Slechani
Copy link

Slechani commented Mar 14, 2024

Is your feature request related to a problem? Please describe.
I have implemented contextual menus in my graph by using the onRightClick events, there are different menu options that are displayed based on what I click on. My problem is that my users are reporting that the contextual menus aren't working properly and I discovered that it happened because some of them were slightly moving their mouse when clicking.

The problem is that the onRightClickEvents won't trigger if i'm moving the mouse even very slightly so I don't think I have any way to fix this problem.

Describe the solution you'd like
I would like a way to make the right click events fire even when the mouse is moving as of right now just slightly moving the mouse a few pixels will prevent them from triggering

Thank you for helping me

@eunukasiko
Copy link

Yeah! The click events should be similar to mousedown rather than click events.

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