0

This is linked to this question:

On click of an ''a'' element, fire it's hover handler instead of going to the link

What happens on an iPad when I use this?

$( '.menu_icon.menu-641.sf-depth-1.menuparent' ).on( 'click', function( ev ){
    ev.preventDefault(); // stop click event
    $( this ).trigger( 'hover' );
} );

I am triggering a hover event when clicking on a hyperlink element.

How does an iPad behave in this scenario? I am aware that touch devices replace hover events with clicks.

Community
  • 1
  • 1
nicholaswmin
  • 21,686
  • 15
  • 91
  • 167

0 Answers0