I have the following code on my site:
$('BODY').on('mouseenter', '.card', function (event) {
$(this).addClass('is-hovered');
});
$('BODY').on('mouseleave', '.card', function (event) {
$(this).removeClass('is-hovered');
});
The idea is that on devices with a mouse, each map will show small arrows when the mouse hangs over them. On touch devices, these arrows should never appear, because you can use a map instead.
The problem is that the jQuery mouseenter event fires in Safari iOS when a map is clicked. Not always, but especially when you click the image inside the map. However, this seems rather random. Can Safari be disabled from hover registration?
source
share