Skip to content

Instantly share code, notes, and snippets.

What would you like to do?
//straight forwards solution to attach both listeners
$(element).bind("touchstart click",function(e){
e.preventDefault()// touchstatr will prevent click but also scroll. Read Link for a better solution
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
You can’t perform that action at this time.