When the bounds or inner bounds that the target touches while snapping are changed, the bound event is called.
bound
When you drag or dragControl, the snap event is called.
snap
import Moveable from "@moveable-next/vanilla";const moveable = new Moveable(document.body, { snappable: true});moveable.on("snap", e => { console.log("onSnap", e);}); Copy
import Moveable from "@moveable-next/vanilla";const moveable = new Moveable(document.body, { snappable: true});moveable.on("snap", e => { console.log("onSnap", e);});
When the bounds or inner bounds that the target touches while snapping are changed, the
boundevent is called.