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

    Function isTouchDevice

    • Returns whether the primary pointer is coarse (typically touch input).

      true when (pointer: coarse) matches, or when isTouchCapable succeeds as a fallback; false outside the browser.

      if (isTouchDevice()) {
      // use touch-optimised interactions
      }