My app needs a gesture recognize when a double tap or a triple tap has occurred. In the source code I can see ionic2 is using hammer.js. I have tried to implement the a double tap, but it is not working. Haas anyone been able to and if so could you please share the code to get it working?
Pseudo code:
counter = 0
lastTapTime = 0
tap event => if nowTime - lastTapTime < 150ms, then ++counter, else counter = 0
if counter === 2, then double tap
if counter === 3, then triple tap