Long press in Ionic Vue

How should one create a long press handler in Ionic Vue? E.g., instead of tapping on a button, this handler would detect a 3 second long press and trigger a different menu.

I found this for Angular

Should I rebuild long-press from scratch using the Gestures API or does anyone know of a plugin that will work with Ionic Vue?

1 Like

There’s a post on the Ionic blog that goes into how to do it using gestures.

1 Like

OP did you get this working? I followed the tutorial and got it running on angular but I am having trouble translating it to my VUE app. I am getting the REF correctly (I think) and the gesture is being made no problem but when I click on the ion-button nothing happens (just trying console.log)