S
S
Sergey2016-02-25 13:52:48
iPhone
Sergey, 2016-02-25 13:52:48

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

1 answer(s)
M
Maxim Budin, 2016-02-25
@frost18

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 question

Ask a Question

731 491 924 answers to any question