PanGesture

One update of a drag: how far it has moved from where it started, and how fast it is going.
public readonly record struct PanGesture(GestureState State, Point Translation, Point Velocity)

Constructors

Initializes a new instance of the PanGesture struct.

public PanGesture(
  GestureState State,
  Point Translation,
  Point Velocity)
ParameterSummary
GestureState StateThe current execution state of the gesture lifecycle.
Point TranslationThe cumulative distance moved from the start position.
Point VelocityThe current speed and direction of the movement.

Properties

State

The current execution state of the gesture lifecycle.

Type: GestureState

public GestureState State { get; init; }

Translation

The cumulative distance moved from the start position.

Type: Point

public Point Translation { get; init; }

Velocity

The current speed and direction of the movement.

Type: Point

public Point Velocity { get; init; }