Class AnchoredMomentum
- Namespace
- Maplibre.NativeFfi
- Assembly
- Maplibre.NativeFfi.dll
How a gesture's zoom, bearing, or pitch keeps changing after release.
public sealed record AnchoredMomentum : IEquatable<AnchoredMomentum>
- Inheritance
-
AnchoredMomentum
- Implements
- Inherited Members
Remarks
See mln_anchored_momentum in the C API reference.
Properties
Anchor
The screen point that the change keeps in place. Without one, the change keeps the center of the view in place.
public ScreenPoint? Anchor { get; init; }
Property Value
Decay
public MomentumDecay Decay { get; init; }
Property Value
Snap
Where the part settles. Without this, it stays where the gesture and its glide leave it.
public MomentumSnap? Snap { get; init; }
Property Value
Velocity
How fast the value changed at release: zoom levels per second for zoom, and degrees per second for bearing and pitch. The part moves only when this is set.
public double? Velocity { get; init; }