Created
July 26, 2022 21:14
-
-
Save 3200pro/6b64ce85dc224adf4fa9a9555d85a223 to your computer and use it in GitHub Desktop.
Check for touch support on your device
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
const touchSupported = () => ('ontouchstart' in window || DocumentTouch && document instanceof DocumentTouch) |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment