@jossmac/lil-libs
    Preparing search index...

    Function isTouchCapable

    • Returns whether the environment reports touch input support.

      Some devices support both touch and mouse input, such as laptops with a touchscreen.

      true when the environment reports touch support via ontouchstart or navigator.maxTouchPoints; false outside the browser.

      isTouchCapable(); // true on touch-capable devices, otherwise false