docs.rodeo

MDN Web Docs mirror

Navigator: maxTouchPoints property

{{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

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

Specifications

{{Specifications}} 

Browser compatibility

{{Compat}} 

In this article

View on MDN