So, this took a little digging through the Ionic 2 source to figure this out, and I noticed some other forum posts asking about gestures with either no answers or vague ones. Here’s how to react to any sort of gesture in Ionic 2: roblouie.com/using-gestures-in-the-ionic-2-beta
It’s possible that as Ionic 2 gets farther along this tutorial will no longer be necessary because there will be better official support, but for now this works well!
Hey all, just wanted to let you know that I’ve updated this tutorial to specifically cover long presses with custom times and double taps. Have a read!
i asked myself the same question and actually used (press).
but then i discovered a difference. imagine the following:
<ion-card *ngFor="let word of dictionary"
(click)="hello(word)" (press)="bye(word)">
<ion-card-header>
{{ word }}
</ion-card-header>
<ion-card-content>
lorem and so on...
</ion-card-content>
</ion-card>
so we have a lot of cards and we actually need to scroll. if you try to start the scrolling on one card itself, the scrolling event will not fire and nothing will happen. but if you use (longPress) with its directive. it will work. it seems like (press) is reserved for the scolling event. so it works for me. and thanks @rloui for the great tutorial.
They do more or less the same thing. I assumed this tutorial would really only matter for a limited time, if you see what I wrote when I posted it:
This post is 8 months old, and back when I wrote this tutorial Ionic 2 was in a very early state. I wrote the tutorial because at the time many people were asking about how to support gestures, and there wasn’t any official support yet. Now there is.
Thanks for your reply @rlouie . I understand that ionic 2 is changing and giving better support for components. i am now using (press) gesture in my app, which is quite handy now.