From 65236afa51beb707a66b02c1e574c11908ef252c Mon Sep 17 00:00:00 2001 From: Sam Keddy Date: Sat, 27 Sep 2025 13:51:56 -0400 Subject: [PATCH] Added snapCenterToCursor to modifiers.md Added documentation for dragging modifier 'snapCenterToCursor'. --- api-documentation/modifiers.md | 6 ++++++ 1 file changed, 6 insertions(+) diff --git a/api-documentation/modifiers.md b/api-documentation/modifiers.md index 6c48952..dc88943 100644 --- a/api-documentation/modifiers.md +++ b/api-documentation/modifiers.md @@ -66,6 +66,12 @@ Restrict movement to the parent element of the draggable item that is picked up. Restrict movement to the first scrollable ancestor of the draggable item that is picked up. +### Dragging + +#### `snapCenterToCursor` + +Center dragged elements under the mouse, instead of keeping the initial offset + ### Snap to grid #### `createSnapModifier`