17/121

Check if the touch events are supported

Check if the current browser supports the touch events:

const touchSupported = 'ontouchstart' in window || 
    (window.DocumentTouch && document instanceof DocumentTouch);

Might be useful