Skip to Content
Platform.Ontology

Touch support

How many simultaneous touches the screen supports and whether touch events exist.

Gets silentlyDevice detailsInput hardwareWeb browsersWhen the page loadsWhile you use it

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

BrowserStatusFirst versionReleasedNote
ChromeSupported352014-05-20None
EdgeSupported122015-07-29None
FirefoxSupported592018-03-13None
SafariSupported132019-09-19Safari macOS reports 0; iOS 5; iPadOS 5
Safari on iPhoneSupported132019-09-19None
Chrome on AndroidSupported352014-05-20None
Samsung InternetSupported3.02015-04-10None

How a site asks for it

APInavigator.maxTouchPoints, 'ontouchstart' in window, document.createEvent('TouchEvent')
Browser compat keysapi.Navigator.maxTouchPoints
How access is grantednone
What the user seesNone
Needs a secure context (HTTPS)No
Needs a user gestureNo
How long it lastsread fresh on every page load; nothing stored
How to take it backnone needed (no grant)
Inside an iframeReadable from cross-origin iframes too (same values)

Typical flow

  1. Page script reads the value
  2. No prompt is shown

Data you get

Shape: object
How often: static per session

FieldTypeUnitRangePrecision
maxTouchPointsintegertouches0 to 20; typical 0, 1, 5, 10exact

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

TypeExampleApps
gamesA browser game shows an on screen joystick and buttons on a touch device and keyboard hints on a desktop.None named
creativeA browser whiteboard turns on two finger zoom and palm rejection on touch screens.Miro, Figma
mapsA web map enables pinch to zoom and two finger rotate when it detects multi touch.Google Maps
shoppingA shop shows larger tap targets and swipe galleries on touch devices.None named
securityA fraud system flags a visitor claiming to be an iPhone with zero touch points.None named
accessibilityA site increases button size for touch to help people with limited dexterity.None named
analyticsA 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

Good uses and abuse

Legitimate uses

  • Pick touch-friendly UI

Known abuse

  • Device class inference

Scores

ScoreValueMeaning
Sensitivity1 of 5How revealing the data is
Utility4 of 5How useful it is to honest apps
Friction0 of 5How much the user has to do
Fingerprint bits1.5Rough identifying entropy, when known

A real example: LinkedIn

Collector key(s): touchSupport.

Sources

How well checked: Based on official documentation.

On this page