Advertisement
rAthus

JavaScript jQuery detect mobile device touch screen

Feb 25th, 2016
308
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
  1. function is_touch_device()
  2. {
  3.     return 'ontouchstart' in window || navigator.maxTouchPoints;
  4. }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement