Skip to content
Open
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
8 changes: 5 additions & 3 deletions files/en-us/web/api/navigator/maxtouchpoints/index.md
Original file line number Diff line number Diff line change
Expand Up @@ -16,11 +16,13 @@ contact points that are supported by the current device.

A number.

## Examples
"Classic" desktop computers (Mac, Windows and Linux) return 0 while smartphones (Android and iOS) typically return a value of 5.

## Example

```js
if (navigator.maxTouchPoints > 1) {
// browser supports multi-touch
if (navigator.maxTouchPoints > 0) {
// The device has a touch screen
}
```

Expand Down