PinchGesture

One update of a pinch: the factor the touched distance has scaled by since the gesture began.
public readonly record struct PinchGesture(GestureState State, double Scale, double Velocity)

Constructors

Initializes a new instance of the PinchGesture struct.

public PinchGesture(
  GestureState State,
  double Scale,
  double Velocity)
ParameterSummary
GestureState StateThe current execution state of the gesture lifecycle.
double ScaleThe cumulative scale factor, 1 at the start.
double VelocityThe scale change per second.

Properties

Scale

The cumulative scale factor, 1 at the start.

Type: double

public double Scale { get; init; }

State

The current execution state of the gesture lifecycle.

Type: GestureState

public GestureState State { get; init; }

Velocity

The scale change per second.

Type: double

public double Velocity { get; init; }