elm-draggable
elm-draggable copied to clipboard
Detecting mouse button in onClick
After #51 one can detect which mouse button was used when dragging. However this is not the case for onMouseDown or onClick. How would one go about detecting mouse button in that case?
Well, there is already a way to get the button with customMouseConfig. The events onMouseDown and onClick are fired after that, so you already have access to the button (you must keep in your model).