Created
May 2, 2012 13:31
-
-
Save markwearing/2576531 to your computer and use it in GitHub Desktop.
jQuery fix for old iOS's hover effects
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
| // Wait until the DOM is fully loaded before executing the jQuery | |
| $(document).ready(function($) { | |
| // A little fix for the old ios's out there | |
| // swap out #menu-main-navigation for your own id | |
| $("#menu-main-navigation").on("a", "touchstart touchend", function (e) { | |
| window.location = $(this).attr("href");s | |
| }); | |
| }); |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment