Mobile Webkit click delay
Mobile Webkit click delay
Out of context: Reply #3
- Started
- Last post
- 4 Responses
- 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
}
})