Touch support
How many simultaneous touches the screen supports and whether touch events exist.
In one line
Can tell if your screen takes touch and how many fingers at once
How many simultaneous touches the screen supports and whether touch events exist.
Separates phone and tablet from desktop, and touch laptops from plain ones. maxTouchPoints is 0 on mouse-only devices, 5 on most phones, 10 on many tablets and touch PCs.
What it can and can't do
What the user does: Nothing. It happens when the page loads
It can
- See the number of touch points, often 0, 5, or 10
- Tell a phone or tablet from a desktop
- Spot a touch laptop
- Show bigger buttons for touch
It cannot
- See where or when you touch the screen before you do
- Tell your exact device model
- See your finger pressure or shape
- Learn much on its own; it is a common value
Browser support
| Browser | Status | First version | Released | Note |
|---|---|---|---|---|
| Chrome | Supported | 35 | 2014-05-20 | None |
| Edge | Supported | 12 | 2015-07-29 | None |
| Firefox | Supported | 59 | 2018-03-13 | None |
| Safari | Supported | 13 | 2019-09-19 | Safari macOS reports 0; iOS 5; iPadOS 5 |
| Safari on iPhone | Supported | 13 | 2019-09-19 | None |
| Chrome on Android | Supported | 35 | 2014-05-20 | None |
| Samsung Internet | Supported | 3.0 | 2015-04-10 | None |
How a site asks for it
| API | navigator.maxTouchPoints, 'ontouchstart' in window, document.createEvent('TouchEvent') |
| Browser compat keys | api.Navigator.maxTouchPoints |
| How access is granted | none |
| What the user sees | None |
| Needs a secure context (HTTPS) | No |
| Needs a user gesture | No |
| How long it lasts | read fresh on every page load; nothing stored |
| How to take it back | none needed (no grant) |
| Inside an iframe | Readable from cross-origin iframes too (same values) |
Typical flow
- Page script reads the value
- No prompt is shown
Data you get
Shape: object
How often: static per session
| Field | Type | Unit | Range | Precision |
|---|---|---|---|---|
maxTouchPoints | integer | touches | 0 to 20; typical 0, 1, 5, 10 | exact |
Technical limits
- Cannot tell stylus vs finger
- Reports capability, not whether the user currently touches
The story
What it is
Tells a page whether your screen supports touch, and how many fingers at once.
For you
You never see it. It quietly decides whether a page shows tap friendly buttons or small mouse sized ones. That makes pages easier to use on a phone or touch laptop.
For makers
Sites use it to pick touch controls, bigger buttons and gestures. The number of touch points hints at phone, tablet or touch laptop. Fraud tools also look for desktops that pretend to be phones.
Where you see it
| Type | Example | Apps |
|---|---|---|
| games | A browser game shows an on screen joystick and buttons on a touch device and keyboard hints on a desktop. | None named |
| creative | A browser whiteboard turns on two finger zoom and palm rejection on touch screens. | Miro, Figma |
| maps | A web map enables pinch to zoom and two finger rotate when it detects multi touch. | Google Maps |
| shopping | A shop shows larger tap targets and swipe galleries on touch devices. | None named |
| security | A fraud system flags a visitor claiming to be an iPhone with zero touch points. | None named |
| accessibility | A site increases button size for touch to help people with limited dexterity. | None named |
| analytics | A dashboard counts how many visitors use touch laptops to guide design choices. | None named |
Risks
- Splits people by device
- Low risk alone
What the platform says
- MDN: Navigator.maxTouchPoints. Docs explain how pages can find out how many touch points the device supports.
Good uses and abuse
Legitimate uses
- Pick touch-friendly UI
Known abuse
- Device class inference
Scores
| Score | Value | Meaning |
|---|---|---|
| Sensitivity | 1 of 5 | How revealing the data is |
| Utility | 4 of 5 | How useful it is to honest apps |
| Friction | 0 of 5 | How much the user has to do |
| Fingerprint bits | 1.5 | Rough identifying entropy, when known |
A real example: LinkedIn
Collector key(s): touchSupport.
Related capabilities
Related
- hover, pointer, any-pointer. Can tell if you use a mouse, finger or stylus, and whether hover works
Sources
- MDN maxTouchPoints
- fingerprintjs source: touch_support
- AmIUnique: Beauty and the Beast, Laperdrix et al. 2016 (attribute entropy)
- mdp/linkedin-extension-fingerprinting (LinkedIn script snapshot and ID list)
How well checked: Based on official documentation.