I'm trying to fire some code as soon as an element starts being pressed using jQuery's mousedown
function, but it's always delayed by about half a second or so. I tried on("touchstart", ... )
but that never even fired the event ever. How do I get the event to fire straight away? I'm testing it on an Android. Thanks
Asked
Active
Viewed 97 times
0
-
Possible duplicate of: [300ms delay removal: using fastclick.js vs using ontouchstart](http://stackoverflow.com/questions/27173272/300ms-delay-removal-using-fastclick-js-vs-using-ontouchstart) – deblocker Dec 20 '16 at 12:31
1 Answers
-1
jQuery Mobile's "tap"
$("p").on("tap",function(){...});

Artem Dudkin
- 588
- 3
- 11
-
-
1
-
to press Enter button was a bad idea. I mean, do you really use jQuery Mobile, not usual jQuery? What version? – Artem Dudkin Dec 14 '16 at 19:48
-
1
-
Please use normal jQuery Mobile at mobile platforms, it can solve many problems. – Artem Dudkin Dec 14 '16 at 19:55
-