FeliciousX / vue-directive-long-press

Vue Directive for Long Press
MIT License
21 stars 9 forks source link

Need a way to prevent @click event #11

Closed Laurensdc closed 5 years ago

Laurensdc commented 5 years ago

At the moment, it doesn't seem possible to combine @click with @long-press-start. Therefor, every time the long press event fires, the click event also fires.

Need something like @long-press-start.prevent where the click event won't fire.

kiyui commented 5 years ago

Hi @Laurensdc, this directive makes use of pointer events so it wouldn't make much sense of us to provide this functionality :smile:

Also, nothing would prevent a user from just doing @pointerdown.prevent if they needed to do that either~