API

Function createPointerInput

  • Observe primary mouse, pen, or touch input without capturing or canceling events. Release outside the element and iframe ownership are handled by its own window.

    Parameters

    • element: HTMLElement

      The input surface; the application owns focus and touch-action.

    Returns PointerInput

    Application-owned state; release with disposePointerInput.