funuicss
Version:
React and Next.js component UI Library for creating Easy and good looking websites with fewer lines of code. Elevate your web development experience with our cutting-edge React/Next.js component UI Library. Craft stunning websites effortlessly, boasting b
11 lines (10 loc) • 452 B
JavaScript
;
Object.defineProperty(exports, "__esModule", { value: true });
exports.isTouchDevice = isTouchDevice;
function isTouchDevice() {
// Check for touch events
var hasTouchSupport = 'ontouchstart' in window || navigator.maxTouchPoints > 0;
// Check for typical mobile user agents
var isMobileAgent = /Mobi|Android|iPhone|iPad|iPod|Opera Mini|IEMobile/i.test(navigator.userAgent);
return hasTouchSupport && isMobileAgent;
}