Mobile Webkit click delay
- Started
- Last post
- 4 Responses
- ESKEMA
How to remove it? I'm searching for it and can't find a definitive answer. Fastclick seems to be the more used, but I really only need this to one link or two, Fastclick may be too much overkill (or maybe not).. what do you guys use if you want to get rid of it?
I need to get rid of it because, I have this thing that slides a menu (jQuery) and it slides it right away, but the click on the ipad only resolves later and when it resolves, another link is where the first event occurred, thus firing the 2nd link...
- ESKEMA0
Ok, i found a script that does it (for now anyway..)
if anyone is interested:
http://cubiq.org/remove-onclick-…
- BabySnakes0
checked out hammer js? gives very nice use of all the touch gestures.
http://eightmedia.github.io/hamm…
- monNom0
I read somewhere that a 'click' event has to wait half a second to see if it's going to be a double click. You can use touch-start and just build a handler to deal with the infrequent double taps.
ie:
on('touchstart',function(){
if(!tapped){
tapped=true;
setTimeout(function(){tapped=fal...
//do tap stuff
}else{
//do doubletap stuff
}
})
- monNom0
...aaaand I should have read your link.
also: http://quojs.tapquo.com/
- I saw this earlier. looks nice.
have to get into it. But I thought overkill too just for that feature aloneESKEMA
- I saw this earlier. looks nice.