interact.js icon indicating copy to clipboard operation
interact.js copied to clipboard

mouseButtons typescript type definitions

Open micvm opened this issue 1 year ago • 1 comments

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

micvm avatar Apr 24 '24 11:04 micvm

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.

WindySpoon avatar May 29 '24 05:05 WindySpoon