E
E
Evgeny2016-04-22 14:26:29
iPhone
Evgeny, 2016-04-22 14:26:29

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

2 answer(s)
D
Dastan, 2016-04-22
@dastiw1

They say that this code helps:

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

Here is the detail

M
Mikhail, 2016-04-22
Chirskiy @chirskiy_mixail

Use Modernizr , in styles
.no-touch .element:hover {}

Didn't find what you were looking for?

Ask your question

Ask a Question

731 491 924 answers to any question