Table of Contents

Class MomentumSnap

Namespace
Maplibre.NativeFfi
Assembly
Maplibre.NativeFfi.dll

Where a part settles after a gesture that changed it.

public sealed record MomentumSnap : IEquatable<MomentumSnap>
Inheritance
MomentumSnap
Implements
Inherited Members

Remarks

The targets are every spacing from offset, in the part's unit. Bearing targets wrap around the circle. Once the part's glide ends, or right away when it doesn't move, the part eases to the nearest target if it is within tolerance of it, and otherwise stays where it is. A setting whose bit isn't set takes the part's default, which GestureMomentum lists.

See mln_momentum_snap in the C API reference.

Properties

DurationMs

Zero settles without easing. Defaults to 300.

public double? DurationMs { get; init; }

Property Value

double?

Offset

Defaults to 0.

public double? Offset { get; init; }

Property Value

double?

Spacing

Positive.

public double? Spacing { get; init; }

Property Value

double?

Tolerance

Not negative.

public double? Tolerance { get; init; }

Property Value

double?