Menu

gitpiper

supportsTouchEvents javascript Code Snippet in 2024

browserbeginner

Last Updated: 4 October 2024

Checks if touch events are supported.

  • Check if 'ontouchstart' exists in window.
const supportsTouchEvents = () => window && 'ontouchstart' in window;
supportsTouchEvents(); // true

javascript snippet similar to supportsTouchEvents For You in October 2024

Subscribe to our Newsletter

Subscribe to get resources directly to your inbox. You won't receive any spam! ✌️

© 2024 GitPiper. All rights reserved

Rackpiper Technology Inc

Company

About UsBlogContact

Subscribe to our Newsletter

Subscribe to get resources directly to your inbox. You won't receive any spam! ✌️