Unhover / mouseout / blur trigger on ipad

In Javascript, the ipad will attack threats with one click, and the next click will become a real click event.

we can run unhover or mouseout or blur after the first click on the ipad, so the next click after the first click will still be a hang event?

+3
source share
1 answer

To catch things on the ipad, you can look for these touchstart, touchhend, touchmove events.

To call something you can just do $ (Element) .trigger ('event_name');

$('testElement').on('touchend', function () {
      $(this).trigger('mouseout');
});
+1
source

All Articles