Created
April 6, 2013 10:12
-
-
Save ozinepank/5325635 to your computer and use it in GitHub Desktop.
Fixing the Hover event on the iPad/iPhone/iPod
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
//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