Enumeration

MaplibreNativeFfiMomentumDecayModel

Declaration

enum MaplibreNativeFfi.MomentumDecayModel

Description [src]

How a part of a gesture’s momentum slows from its release speed.

See mln_momentum_decay_model in the C API reference.

Members

MAPLIBRE_NATIVE_FFI_MOMENTUM_DECAY_MODEL_FRICTION

The speed halves every half_life_ms, until it drops to stop_speed. UIScrollView’s normal deceleration is a half-life of 346 ms, and its fast deceleration 69 ms.

  • Value: 0
  • Available since: 0
MAPLIBRE_NATIVE_FFI_MOMENTUM_DECAY_MODEL_EASE

The part eases distance over duration_ms, along easing, as a camera animation does. The caller plans the glide, for example from the platform’s own fling physics, such as Android’s OverScroller.

  • Value: 1
  • Available since: 0