Touch support detection identifies whether your device has a touchscreen and how many touch points it supports.
🔬 Detection Methods
// Max touch points
navigator.maxTouchPoints // 0 (no touch), 1, 5, 10, etc.
// Touch events support
'ontouchstart' in window // true/false
// CSS media query
@media (pointer: coarse) { } // Touch device
@media (pointer: fine) { } // Mouse/trackpad
📊 Common Values
| Device Type | maxTouchPoints |
|---|---|
| Desktop (no touch) | 0 |
| Touch laptop | 1-10 |
| Smartphone | 5-10 |
| Tablet | 5-10 |
🎯 Fingerprinting Value
Touch support helps distinguish device types and must match the spoofed User Agent (mobile vs desktop).
🛡️ Spoofing Touch
Antidetect browsers set touch support based on the profile's device type. A mobile profile needs touch support; a desktop typically doesn't.