Why is it that, with regular link tags ( <a>
), you have to tap twice for them to fire with iOS devices?
For example, I have the following in my code:
<a href="http://www.google.com" class="link">Google</a>
On iOS, I have to tap that link twice for it to redirect me.
In other cases, I have links that are fired through some jQuery event, which also require you to tap twice to fire the event.
How can I fix this, knowing that this is a large project?
Thanks.
try to add touchend
event with your click like :
$('#anchor').on('click touchend', function(e) {
window.location = 'link';
});
The technical post webpages of this site follow the CC BY-SA 4.0 protocol. If you need to reprint, please indicate the site URL or the original address.Any question please contact:yoyou2525@163.com.