Skip to content

Instantly share code, notes, and snippets.

@twysto
Created July 18, 2017 09:01
Show Gist options
  • Save twysto/0c52cee8a67cf0d04d4b2a1163bc6c74 to your computer and use it in GitHub Desktop.
Save twysto/0c52cee8a67cf0d04d4b2a1163bc6c74 to your computer and use it in GitHub Desktop.
Touch Events Detection
var isSupportingTouchEvents = 'ontouchstart' in window || navigator.maxTouchPoints > 0 || navigator.msMaxTouchPoints > 0;
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment