Created
January 29, 2013 13:40
-
-
Save asimpson/4664308 to your computer and use it in GitHub Desktop.
Event bubbling doesn't bubble all the way to the document level on iOS. Here is one way to make that happen.
This file contains 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
touchPointer: -> | |
document.documentElement.style.cursor = "pointer" | |
# Call this on init | |
if Modernizr.touch | |
document.addEventListener "touchstart", touchPointer() |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Here is some linkage to back this up.
https://github.com/sindresorhus/jquery/commit/fa64ad396b29ea5553837456d31af46fd357ff80
http://api.jquery.com/live/
From the jQuery .live documentation