Checks if the current device supports touch interactions.
true if touch is supported.
true
if (isTouchDevice()) { console.log("This device supports touch interactions!");} Copy
if (isTouchDevice()) { console.log("This device supports touch interactions!");}
Checks if the current device supports touch interactions.