Skip to content

Instantly share code, notes, and snippets.

@ozinepank
Created April 6, 2013 10:12
Show Gist options
  • Star 1 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save ozinepank/5325635 to your computer and use it in GitHub Desktop.
Save ozinepank/5325635 to your computer and use it in GitHub Desktop.
Fixing the Hover event on the iPad/iPhone/iPod
//ipad and iphone fix
if((navigator.userAgent.match(/iPhone/i)) || (navigator.userAgent.match(/iPod/i)) || (navigator.userAgent.match(/iPad/i))) {
$(".menu li a").click(function(){
//we just need to attach a click event listener to provoke iPhone/iPod/iPad's hover event
//strange
});
}
// credit article : http://blog.0100.tv/2010/05/fixing-the-hover-event-on-the-ipadiphoneipod/
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment