@maplibre/native-ffi
    Preparing search index...

    Interface MomentumSnap

    Where a part settles after a gesture that changed it.

    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.

    interface MomentumSnap {
        durationMs?: number;
        offset?: number;
        spacing?: number;
        tolerance?: number;
    }
    Index
    durationMs?: number

    Zero settles without easing. Defaults to 300.

    offset?: number

    Defaults to 0.

    spacing?: number

    Positive.

    tolerance?: number

    Not negative.