N
N
Nohaga2020-04-27 13:00:59
JavaScript
Nohaga, 2020-04-27 13:00:59

What event is called that only tap would work?

Why doesn't click on links work on iPhone?

$('a').on('click touchend', function(e) {
    var el = $(this);
    var link = el.attr('href');
    window.location = link;
});

Here there is such a solution to a glitch on iOS, but touchend interferes with scrolling, if the picture with the link scrolls and the place remains there, then the link is clicked, as the tap event is called, just clicking on the link without movements, I searched for something I didn’t find.

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