javascript - Does onclick default to ontouch -


if have webpage , want monitor clicks , touches on div, have add event listeners each event or touch event act click event default on mobile?

yes, default touching element on mobile device fire click event handler. however, behavior undesirable since allows 300ms delay before event handler function runs. see this blog post more information.


Comments

Popular posts from this blog

java - How to specify maven bin in eclipse maven plugin? -

single sign on - Logging into Plone site with credentials passed through HTTP -

php - Why does AJAX not process login form? -