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

mouseButtons typescript type definitions #1037

Open
micvm opened this issue Apr 24, 2024 · 1 comment
Open

mouseButtons typescript type definitions #1037

micvm opened this issue Apr 24, 2024 · 1 comment

Comments

@micvm
Copy link

micvm commented Apr 24, 2024

I've used and have been using interact.js successfully with mouseButton value "3", which enables dragging via left as well as right mouse button. However, the typescript type does not include that as valid value. Would it be possible to add or are there any issues using value 3?

System configuration

interact.js version: 1.10.27
Browser name and version: all
Operating System: all

@WindySpoon
Copy link

I myself have been using mouseButtons: 7 which enables dragging via left, right, and middle mouse button. I may be mistaken but I believe that a bitwise OR operation is being done to determine what buttons are allowed. But it would be nice if the typescript type was updated to allow all of this, in the meantime I will use // @ts-ignore.

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