Answer the question
In order to leave comments, you need to log in
Why doesn't the $(document).on('click', function(e){...}) event fire on iphone?
On android, the event works fine, like on a computer, but on iphone it does not work.
The touchstart event will not work correctly, it will work when scrolling or zooming, but I do not need this.
$(document).on('click', function(e){...})
Answer the question
In order to leave comments, you need to log in
Iphone, in order to avoid unnecessary and unexpected clicks, considers only standard ones as potentially clickable elements. like the "a" tag. In order for the Iphone to consider an element as potentially clickable, you need to add the "cursor: pointer;" property to the element in the styles.
Didn't find what you were looking for?
Ask your questionAsk a Question
731 491 924 answers to any question