On-tap with long duration


#1

According to the docs

on-tap

Quick touch at a location. If the duration of the touch goes
longer than 250ms it is no longer a tap gesture.

How to trigger event in case user presses the button, holds for more than 250ms, and releases it (while the finger is still in the button area)?
I tried on some native apps, the event is triggered but not in ionic app (on-tap, ng-click).

Hence the ionic button does not feel native. Is there a normal way to work around this issue?


#2

You should use on-hold directive.
Ionic documentation for on-hold


#3

on-hold triggers even if i didn’t release the button.


#4

You need to disable swipe back on ion-nav-view

.config(function($ionicConfigProvider){
    $ionicConfigProvider.views.swipeBackEnabled(false);
})