browsersays

navigator.maxTouchPoints

How many fingers your screen can track at once. Zero on most desktops, five or ten on phones, and one of the easiest contradictions to spot.

Checking the browser you are reading this in…

Entry in question 2: What it says about your machine

What it is

The number of simultaneous touch contacts the hardware supports. A desktop without a touchscreen reports zero. A phone or tablet usually reports five or ten. A laptop with a touchscreen reports a real number and is therefore not a desktop by this measure.

What a site can do with it

It drives layout decisions — larger targets, different menus — which is why it is read so widely. It is also a favourite consistency check, because a user agent claiming a phone alongside a zero here is a contradiction that takes one line to find and that no real device produces.

Check it yourself

Open your browser's developer tools, go to the console, and paste this. Nothing is sent anywhere; the answer comes from the browser you are reading this in.

navigator.maxTouchPoints

The full path recorded by the walk is navigator.maxTouchPoints, and that is the string the leaflet prints beside this entry.

What the answer is on an ordinary browser

Written by hand for each of the three engines, because a table generated from one sentence would be worth nothing to the person reading it.

Chrome
Present. Zero on a non-touch desktop, ten on most Android phones.
Firefox
Present, with the same values.
Safari
Present. Five on iPhone and iPad; zero on a Mac without a touch screen.

If your browser is not present, the leaflet prints this instead of dimming the line: Not present. Sites deciding between a touch and a pointer layout get no answer.

Where it sits in the leaflet

This is one of 9 entries in question 2, what it says about your machine. The leaflet reads all 42 entries in one press and prints each answer beside the question, with the property name next to it so you can check any line.

Read my browser · navigator.hardwareConcurrency · navigator.devicePosture