I hereby claim:
- I am poeticode on github.
- I am prophesi (https://keybase.io/prophesi) on keybase.
- I have a public key ASC_cqAwN1P4fVidtfCyo8bO2Lybq24EDw0jO9AYDIiiKQo
To claim this, I am signing this object:
I hereby claim:
To claim this, I am signing this object:
// https://blogs.perficientdigital.com/2017/11/21/detecting-the-use-of-a-touch-screen/ | |
// Usage: isTouch().then( (result) ) { | |
// if (result) console.log("Yep, uses touch"); | |
// else console.log("Nope, uses mouse"); | |
//} | |
// Set a variable detecting the existence of touch events | |
var _hasEvents = 'ontouchstart' in window || navigator.msMaxTouchPoints > 0; | |
var _isTouchCached = null; |