Back to Content

Navigator: maxTouchPoints property

files/en-us/web/api/navigator/maxtouchpoints/index.md

latest409 B
Original Source

{{APIRef("HTML DOM")}}

The maxTouchPoints read-only property of the {{domxref("Navigator")}} interface returns the maximum number of simultaneous touch contact points that are supported by the current device.

Value

A number.

Examples

js
if (navigator.maxTouchPoints > 1) {
  // browser supports multi-touch
}

Specifications

{{Specifications}}

Browser compatibility

{{Compat}}