Navigation Menu

Skip to content

Instantly share code, notes, and snippets.

@pierre-b
Created January 22, 2014 22:21
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save pierre-b/8568594 to your computer and use it in GitHub Desktop.
Save pierre-b/8568594 to your computer and use it in GitHub Desktop.
function isTouchDevice() {
return "ontouchstart" in window || navigator.msMaxTouchPoints > 0;
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment