Enum MomentumDecayModel
- Namespace
- Maplibre.NativeFfi
- Assembly
- Maplibre.NativeFfi.dll
How a part of a gesture's momentum slows from its release speed.
public enum MomentumDecayModel : uint
Fields
Ease = 1The part eases
distanceoverduration_ms, alongeasing, as a camera animation does. The caller plans the glide, for example from the platform's own fling physics, such as Android's OverScroller.Friction = 0The speed halves every
half_life_ms, until it drops tostop_speed. UIScrollView's normal deceleration is a half-life of 346 ms, and its fast deceleration 69 ms.
Remarks
See mln_momentum_decay_model in the C API reference.