Patch Changes
-
#1658
4682570
Thanks @github-actions! - Fix handling of aborted drag operations across sensors. Thestart
method now returns a boolean to indicate whether the operation was aborted, allowing sensors to properly clean up when a drag operation is prevented. This affects the Keyboard and Pointer sensors, ensuring they properly handle cases wherebeforeDragStart
events are prevented. -
#1658
f8d69b0
Thanks @github-actions! - Allowactions.start()
to optionally receive asource
as input. -
#1658
d04e9a2
Thanks @github-actions! - Prevent starting a new drag operation while another one is active by adding a status check in the drag operation manager. This change throws an error if an attempt is made to start a drag operation while another one is in progress. -
#1658
ee55f58
Thanks @github-actions! - Refactor the drag operation system to improve code organization and maintainability:- Split
dragOperation.ts
into multiple focused files:operation.ts
- Core drag operation logicstatus.ts
- Status managementactions.ts
- Drag actions
- Update imports and exports to reflect new file structure
- Improve type definitions and exports
- Split
-
Updated dependencies [
ee55f58
]:- @dnd-kit/state@0.1.2
- @dnd-kit/geometry@0.1.2