dev4web
8/13/2016 - 4:58 AM

detect-pointer.js

window.addEventListener('pointerdown', function onFirstPointer(e) {
  window.POINTER_SIZE = e.height;
  window.removeEventListener('pointerdown', onFirstPointer, false);
}, false);