Created
December 14, 2012 15:15
-
-
Save enwin/4286163 to your computer and use it in GitHub Desktop.
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
$('a').bind('touchstart touchend touchcancel click',function(e){ | |
// prevent click on touch actions | |
e.preventDefault(); | |
// stop script if touchstart, only execute the script on touchend (nicer) | |
e.type === touchstart && return | |
alert('here'); | |
}); |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment