I want to detect a "scroll click", that is, when the user presses down the scroll wheel (that one between the left click and the right click in a mouse). Is there any way to do this in JavaScript, other than detecting the cursor type?
Asked
Active
Viewed 80 times
0
-
All [mouse events have a button property](https://developer.mozilla.org/en-US/docs/Web/API/MouseEvent/button) on them telling you which button was pressed. – Heretic Monkey Jun 06 '18 at 18:37
-
https://stackoverflow.com/questions/5392442/detect-middle-button-click-scroll-button-with-jquery – j08691 Jun 06 '18 at 18:38