Answer the question
In order to leave comments, you need to log in
How to count Javascript clicks in mobile browsers (Android and iPhone)?
I made a promo page that should count visitor clicks ( link ). I'm using jQuery and counting clicks on the mousedown event. Everything works on desktops, but on mobiles and tablets it's somehow clumsy. I have never worked with them, and I can not understand why it does not work.
1. On android (HTC and Samsung) when double-clicking, the browser tries to zoom the page (it does not zoom to the end, but returns to its original view). User zoom disabled:
<meta name="viewport" content="width=device-width, initial-scale=1.0, minimum-scale=1.0, maximum-scale=1.0, user-scalable=no">
Answer the question
In order to leave comments, you need to log in
Didn't find what you were looking for?
Ask your questionAsk a Question
731 491 924 answers to any question