Vue.js - event handling with on-mouse-click down (and not up)
You can simply use @mousedown
event on the element, just like @click
, to handle the mousedown
event.
<button @mousedown="mouseDown"> mouseDown </button>
See working fiddle: https://fiddle.jshell.net/mimani/feL03wgd/