Answer the question
In order to leave comments, you need to log in
Why doesn't click on links work on iPhone?
Such a problem: some links on the site on the iPhone do not work. They only work when you press twice. I refer to the fact that on links that do not work, there is a hover, i.e. when you click on the link once, the hover specified in css works, when you click again, it follows the link. Tell me who can come across?
Answer the question
In order to leave comments, you need to log in
They say that this code helps:
$('a').on('click touchend', function(e) {
var el = $(this);
var link = el.attr('href');
window.location = link;
});
Didn't find what you were looking for?
Ask your questionAsk a Question
731 491 924 answers to any question