--- title: Navigator.maxTouchPoints slug: Web/API/Navigator/maxTouchPoints translation_of: Web/API/Navigator/maxTouchPoints ---
touchPoints = navigator.maxTouchPoints;
if (navigator.maxTouchPoints > 1) { // 浏览器支持多点触控 }
Specification | Status | Comment |
---|---|---|
{{SpecName('Pointer Events 2','#extensions-to-the-navigator-interface', 'maxTouchPoints')}} | {{Spec2('Pointer Events 2')}} | Non-stable version. |
{{SpecName('Pointer Events', '#extensions-to-the-navigator-interface', 'maxTouchPoints')}} | {{Spec2('Pointer Events')}} | Initial definition. |