Function vPan

  • Creates the vertical pan (or a swipe if minVelocity is used).

    Parameters

    • logger: Logger

      The logger to use for this interaction

    • cancellable: boolean

      Whether the DnD can be cancelled by interacting with a dwell-and-spring element.

    • pxTolerance: number

      The pixel tolerance for considering the line vertical.

    • Optional minLength: number

      The minimal distance from the starting point to the release point for validating the pan

    • Optional minVelocity: number

      The minimal minVelocity to reach for validating the swipe. In pixels per second.

    Returns (() => TouchDnD)

    The supplier that will produce the interaction when called

Generated using TypeDoc