javascript - Touchstart vs Click. What happens under the hood? -
first, excuse me please, not programming question, think wont fit theoretical cs, , cs non programming still in private beta.
after updating phonegap applications listen
$(selector).bind("touchstart",function());
instead of
$(selector).click(function());
(here jquery),and performance improved remarkably, want know touchstart different, despite of fact designed mobile devices environments. looked w3c document on touchstart, doesnt provide information.
if has link further explanation or can explain how works, appreciate it
on iphone touchstart event fires finger touches screen, whereas click event fires 300 ms after touch screen , lift finger off screen. 300 ms time delay safari can wait see if intend double tap screen in succession simulate zoom gesture.
Comments
Post a Comment