Moveable
    Preparing search index...

    Interface SnappableEvents

    interface SnappableEvents {
        onBound: OnBound;
        onSnap: OnSnap;
    }
    Index
    onBound: OnBound

    When the bounds or inner bounds that the target touches while snapping are changed, the bound event is called.

    onSnap: OnSnap

    When you drag or dragControl, the snap event is called.

    import Moveable from "@moveable-next/vanilla";

    const moveable = new Moveable(document.body, {
    snappable: true
    });
    moveable.on("snap", e => {
    console.log("onSnap", e);
    });