Skip to content

Instantly share code, notes, and snippets.

@akmur
Last active August 29, 2015 14:00
Show Gist options
  • Save akmur/11374329 to your computer and use it in GitHub Desktop.
Save akmur/11374329 to your computer and use it in GitHub Desktop.
Touchstart
var eventClick = (navigator.userAgent.match(/(iPad|iPhone|Android)/i)) ? "touchstart" : "click";
$('.myselector').bind(eventClick, function(event) {
// do stuff
});
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment