Determining Long Tap (Long Press, Tap Hold) on Android with jQuery

Posted by Volomike on Stack Overflow See other posts from Stack Overflow or by Volomike
Published on 2011-01-17T04:51:23Z Indexed on 2011/01/17 4:53 UTC
Read the original article Hit count: 281

Filed under:
|
|

I've been able to successfully play with the touchstart, touchmove, and touchend events on Android using jQuery and an HTML page. Now I'm trying to see what the trick is to determine a long tap event, where one taps and holds for 3 seconds. I can't seem to figure this out yet. I'm wanting to this purely in jQuery without Sencha Touch, JQTouch, jQMobile, etc.

I like the concept of jQTouch, although it doesn't provide me a whole lot and some of my code breaks with it. With Sencha Touch, I'm not a fan of moving away from jQuery into Ext.js and some new way of doing Javascript abstraction, especially when jQuery is so capable. So, I want to figure this out with jQuery alone. I've been able to do many jQTouch and Sencha Touch things on my own using jQuery. And jQMobile is still too beta and not directed enough to the Android yet.

© Stack Overflow or respective owner

Related posts about jQuery

Related posts about android