Skip to content

Instantly share code, notes, and snippets.

@martinwolf
Created June 19, 2013 07:39

Revisions

  1. martinwolf created this gist Jun 19, 2013.
    3 changes: 3 additions & 0 deletions if-touch.js
    Original file line number Diff line number Diff line change
    @@ -0,0 +1,3 @@
    if ( ('ontouchstart' in window) || (navigator.msMaxTouchPoints > 0) ) {
    // is touch
    }