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
Post a Comment