GestureData: {
    deltaX: number;
    deltaY: number;
    deltaZ: number;
    device: GestureDevice;
    direction: Direction;
    intent: GestureIntent;
    time: number;
    totalDeltaX: number;
    totalDeltaY: number;
    totalDeltaZ: number;
}

Type declaration

  • deltaX: number

    Delta in the horizontal direction since the start of the gesture.

  • deltaY: number

    Delta in the vertical direction since the start of the gesture.

  • deltaZ: number

    Relative fractional zoom in or out for zoom intents since the start of the gesture.

    For zoom in, deltaZ is always > 1, and for zoom out it is < 1.

    For non-zoom gestures it is 1.

  • device: GestureDevice
  • direction: Direction
  • intent: GestureIntent
  • time: number

    The time in milliseconds it took for the gesture. This will be the difference in timestamps between the first and last event that composed the gesture. For key and wheel gestures this could be 0, since 1 event is sufficient for them.

  • totalDeltaX: number

    Delta in the horizontal direction since the callback was added.

  • totalDeltaY: number

    Delta in the vertical direction since the callback was added.

  • totalDeltaZ: number

    Percentage (relative) zoom in or out for zoom intents since the callback was added.