Double Tap: event support?


#1

Sorry, sure this is somewhere in the docs, but is there a simple example/codepen of double tap support events?

thanks!


#2

I don’t think Ionic has any support for double tap. The Gestures code doesn’t define it:

There is :

  • ionic.Gestures.gestures.Drag
  • ionic.Gestures.gestures.Transform
  • ionic.Gestures.gestures.Tap
  • etc.

#3

Thank you, what’s interesting is in the .js blob you reference, there are functions and comments to support doubletap, see at line #1054. I originally asked as hammer.js supports doubletap so perhaps this is a case of ‘in progress’ porting or testing of the doubletap event?

the HTML example/test at: https://github.com/driftyco/ionic/blob/master/js/ext/angular/test/gesture.html lists:

      $ionicGesture.off(dragGesture, 'drag', dragFn);
      $ionicGesture.off(holdGesture, 'hold', holdFn);
      $ionicGesture.off(releaseGesture, 'release', releaseFn);
      $ionicGesture.off(swipeGesture, 'swipe', swipeFn);
      $ionicGesture.off(tapGesture, 'tap', tapFn);
      $ionicGesture.off(transformGesture, 'transform', transformFn); 

thank you


#4

I don’t think so. I saw that as well but I think that was a remnant. You could post a feature request on GitHub.


#5

Thank you, it does work as expected but apparently is not fully documented.