Interface LineTouchData

The interaction data for touch interactions that follow a line (e.g. vertical pan)

interface LineTouchData {
    isBottom(pxTolerance): boolean;
    isHorizontal(pxTolerance): boolean;
    isLeft(pxTolerance): boolean;
    isRight(pxTolerance): boolean;
    isTop(pxTolerance): boolean;
    isVertical(pxTolerance): boolean;
}

Implemented by

Methods

  • Returns true if the gesture (all the lines) is going to the bottom.

    Parameters

    • pxTolerance: number

      The pixel tolerance for considering the line vertical.

    Returns boolean

  • Returns true if all the touch lines are horizontal in the same direction.

    Parameters

    • pxTolerance: number

      The pixel tolerance for considering the line horizontal.

    Returns boolean

  • Returns true if the gesture (all the lines) is going to the left.

    Parameters

    • pxTolerance: number

      The pixel tolerance for considering the line horizontal.

    Returns boolean

  • Returns true if the gesture (all the lines) is going to the right.

    Parameters

    • pxTolerance: number

      The pixel tolerance for considering the line horizontal.

    Returns boolean

  • Returns true if the gesture (all the lines) is going to the top.

    Parameters

    • pxTolerance: number

      The pixel tolerance for considering the line vertical.

    Returns boolean

  • Returns true if all the touch lines are vertical in the same direction.

    Parameters

    • pxTolerance: number

      The pixel tolerance for considering the line vertical.

    Returns boolean

Generated using TypeDoc