Skip to content

Dragging with right mouse button, middle mouse button, or left and right combined #336

Answered by dbismut
sluijs asked this question in Q&A
Discussion options

You must be logged in to vote

Hi, indeed the drag gesture won't start if the primary button isn't pressed, and similarly pressed is only true when the primary button is pressed. There could be an option where you would specify which button would trigger the drag https://developer.mozilla.org/en-US/docs/Web/API/MouseEvent/buttons.

However I wouldn't recommend using the middle button as a trigger since most trackpads don't have it.

Replies: 1 comment 2 replies

Comment options

You must be logged in to vote
2 replies
@sluijs
Comment options

@dbismut
Comment options

Answer selected by sluijs
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Category
Q&A
Labels
None yet
2 participants