Search code examples
angularcordovahammer.jsrouterlink

How can I remove the 300ms delay on Angular routerLink using Hammer.js?


I am trying to remove the famous 300ms delay from my app with Hammer.js, and have been successful so far using tap in stead of click.

However, this does not work on routerLink's. I haven't found any articles or other people writing about this issue, so I hope you can help.

The app is made with Angular and Cordova.

Is there a way to remove the 300ms delay on routerLinks?

Thanks in advance!


Solution

  • After reading Ionic's troubleshooting guide on tap and click, I found that the best solution to this issue would be to use (click) with tapable in front of it.

    See Ionic doc here (sadly, the link is not working at the moment, but I will post it anyway, for future reference, hoping they haven't removed it from the docs compoletely).

    Also here is the forum post that let me to this answer.