Add new hook
This release introduces useDraggable, a hook that makes an element draggable via pointer events, reporting both an absolute position (for left/top) and a delta offset from the drag start (for transform: translate) to its lifecycle callbacks.
Features
useDraggable— added a hook that makes an element draggable, exposingsnapshot,dragging,set, andwatch, and acceptingaxis,enabled,initialValue, andonStart,onMove,onEndcallbacks, with the callbacks receivingposition,delta, and the originatingevent.useDraggable— theonStartcallback can returnfalseto cancel a drag before it begins, which lets consumers restrict dragging to a handle by inspecting the event target without any dedicatedhandleoption.useDraggable— added asetmethod to move the element programmatically, so its position can be driven from outside the hook, for example to snap it back to its origin.useDraggable— thedeltapassed to callbacks is measured from the pointer position at drag start, so it always begins at zero on each new drag regardless of where the element was left previously.