Created
October 11, 2012 20:48
-
-
Save ganoro/3875382 to your computer and use it in GitHub Desktop.
click vs. touch
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
$(selector).click(function(event){ | |
/* click event handler */ | |
}); | |
/* vs. */ | |
$(selector).bind('touchend', function(event){ | |
/* mimic the "native" tapping here... */ | |
}); |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment