mozilla
Your Search Results

    Navigator.maxTouchPoints

    Summary

    Return the maximum number of touch contacts of current device.

    Syntax

    touchPoints = navigator.maxTouchPoints;
    

    Example

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

    Specification

    Specification Status Comment
    Pointer Events
    The definition of 'maxTouchPoints' in that specification.
    Proposed Recommendation  

    Browser compatibility

    Feature Chrome Firefox (Gecko) Internet Explorer Opera Safari
    Basic support 35 crbug.com/248918 29 (29) But default off [1] 10 -ms
    11
    ? Not supported
    Feature Android Chrome for Android Firefox Mobile (Gecko) IE Mobile Opera Mobile Safari Mobile
    Basic support ? 35 crbug.com/248918 29.0 (29) But default off [1] 10 -ms
    11
    ? Not supported

    Gecko Note

    Gecko supports this feature only if the user enables it by setting the config value dom.w3c_pointer_events.enabled to true.

     

    Document Tags and Contributors

    Contributors to this page: mkato, teoli, kscarfone, kollishivagangadhar
    Last updated by: teoli,
    Hide Sidebar