I want to implement multiple select on multiple items (a list of ion-item-sliding) when one of them is pressed for few seconds by adding (press) to each ion-item-sliding and it seems that the press event is never fired. I moved the press event to ion-item but nothing still happened. Then I tried to test directly the press event on a ion-button and found out that the press event is the problem because when I change it to click it's working perfectly. Here is what I tried:
<ion-button (press)="itemPressed()">Test</ion-button>
itemPressed() {
console.log("expecting to work");
}
In addition to @Arj 1411's answer add HammerModule in '@angular/platform-browser' imports and this should be work.
If you love us? You can donate to us via Paypal or buy me a coffee so we can maintain and grow! Thank you!
Donate Us With