Using (tap) and (press) on same element - both gesture events are fired

I recently struggled with the (tap), (press) and (click) events and changed all my (tap) events into (click) since things were firing twice. Dit you tried calling

e.preventDefault();

after the event handler to prevent the events from falling down?

There is also a tutorial to create a custom directive from the time gestures weren’t supported by default in Ionic 2: http://www.roblouie.com/article/198/using-gestures-in-the-ionic-2-beta/ and perhaps you can find some background information in this thread: Using Gestures Hold, Double Tap, and more in the Ionic 2 Beta.

1 Like