C
C
Cyril2017-08-16 18:47:01
iPhone
Cyril, 2017-08-16 18:47:01

Is there a JavaScript library that provides cross-browser click and touchstart?

There is a div block . On some devices, clicking on it works fine without problems (Android, desktop), but on the iPhone / iPad it does not work correctly.
For example, I implemented the logic that one click on a div selects it, and a second click on it performs some function . On Android and desktop everything works fine. But on iPhone/iPad, on the first click, the function immediately fires, without waiting for the second click...
Are there any JavaScript libraries that provide cross-browser click and touchstart? To make the click on all devices work the same .

Answer the question

In order to leave comments, you need to log in

Didn't find what you were looking for?

Ask your question

Ask a Question

731 491 924 answers to any question