elm-draggable icon indicating copy to clipboard operation
elm-draggable copied to clipboard

Detecting mouse button in onClick

Open WaDelma opened this issue 4 years ago • 1 comments

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?

WaDelma avatar Apr 06 '21 17:04 WaDelma

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).

zaboco avatar Apr 07 '21 06:04 zaboco