if (navigator.maxTouchPoints > 1) {
// Device supports tracking at least 2 touch points; offer complex
// interaction gestures such as swiping with two/three fingers
} else {
// Device only has 1 touch point or is not a touch screen.
// Offer basic gestures such as dragging and clicking
}Navigator: maxTouchPoints property / notebook
Navigator: maxTouchPoints property
Runnable notebook: every JavaScript, HTML and CSS example on this page executes in a sandboxed local frame. Nothing leaves the browser.