While working on a hybrid mobile app I noticed that the JS Click event (hooked up via jQuery) had an annoying response delay after I tested the iOS build of the app.
I found the solution for the delay problem in a nice mobile JS library called Hammer.js. Their motto: You CAN touch this! (gotto love that!).
I checked out their website and Github repo and started testing the responsiveness using two buttons on the same screen, one setup with the standard click event and one via hammer.js. It was very clear after one press on each button that hammer.js has a very fast response and so I am using it as the premiere gesture/click event handler for my hybrid mobile apps right now.
You can use a singleton approach that handles all the interaction on the entire screen and hook up gesture- and touch-events to get theinteraction flowing. With an easy syntax like the following it’s now sweat integrating this one into your Phonegap project:
[crayon-5e2b24c32883a673138014/] Be sure to check it out and get it clickin’, Hammer style !