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

pass buttons prop to realMouseMove #623

Open
bogdanS-e opened this issue Jan 31, 2024 · 1 comment
Open

pass buttons prop to realMouseMove #623

bogdanS-e opened this issue Jan 31, 2024 · 1 comment

Comments

@bogdanS-e
Copy link

bogdanS-e commented Jan 31, 2024

Is there a way to pass buttons (https://developer.mozilla.org/en-US/docs/Web/API/MouseEvent/buttons) prop to realMouseMove?

I have a drag-and-drop functionality in my application. And have an event listener for mouse move that listens when buttons: 1 (left mouse button is down)

realMouseMove triggers event only with buttons: 0 (no buttons are pressed)

@bogdanS-e
Copy link
Author

@dmtrKovalenko

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

1 participant