Interface FourTouchData

The interaction data for four-touch interactions

interface FourTouchData {
    diffClientX: number;
    diffClientY: number;
    diffPageX: number;
    diffPageY: number;
    diffScreenX: number;
    diffScreenY: number;
    touch1: SrcTgtPointsData<TouchData>;
    touch2: SrcTgtPointsData<TouchData>;
    touch3: SrcTgtPointsData<TouchData>;
    touch4: SrcTgtPointsData<TouchData>;
    touches: readonly SrcTgtPointsData<TouchData>[];
    velocity(direction): number;
}

Hierarchy

Implemented by

Properties

diffClientX: number

The translation vector between the x client position of the source and the y client position of the target.

diffClientY: number

The translation vector between the y client position of the source and the y client position of the target.

diffPageX: number

The translation vector between the x page position of the source and the x page position of the target.

diffPageY: number

The translation vector between the y page position of the source and the y page position of the target.

diffScreenX: number

The translation vector between the x screen position of the source and the x screen position of the target.

diffScreenY: number

The translation vector between the y screen position of the source and the y screen position of the target.

The first touch

The second touch

The third touch

The fourth touch

touches: readonly SrcTgtPointsData<TouchData>[]

The list of touch data.

Methods

  • The velocity of the move, in pixels per millisecond. For multi-touch, the velocity is the mean of all the touch velocities.

    Parameters

    • direction: "all" | "horiz" | "vert"

      The direciton to consider.

    Returns number

Generated using TypeDoc