| ... | @@ -24,7 +24,7 @@ import { | ... | @@ -24,7 +24,7 @@ import { |
| 24 | type DragEndEvent, | 24 | type DragEndEvent, |
| 25 | } from "@dnd-kit/core"; | 25 | } from "@dnd-kit/core"; |
| 26 | import { SortableContext, useSortable, verticalListSortingStrategy } from "@dnd-kit/sortable"; | 26 | import { SortableContext, useSortable, verticalListSortingStrategy } from "@dnd-kit/sortable"; |
| 27 | import { restrictToParentElement, restrictToVerticalAxis } from "@dnd-kit/modifiers"; | 27 | import { restrictToFirstScrollableAncestor, restrictToVerticalAxis } from "@dnd-kit/modifiers"; |
| 28 | import { CSS } from "@dnd-kit/utilities"; | 28 | import { CSS } from "@dnd-kit/utilities"; |
| 29 | import { | 29 | import { |
| 30 | DEFAULT_MODEL_BY_PROVIDER, | 30 | DEFAULT_MODEL_BY_PROVIDER, |
| ... | @@ -1320,7 +1320,7 @@ export default function Sidebar() { | ... | @@ -1320,7 +1320,7 @@ export default function Sidebar() { |
| 1320 | <DndContext | 1320 | <DndContext |
| 1321 | sensors={projectDnDSensors} | 1321 | sensors={projectDnDSensors} |
| 1322 | collisionDetection={projectCollisionDetection} | 1322 | collisionDetection={projectCollisionDetection} |
| 1323 | modifiers={[restrictToVerticalAxis, restrictToParentElement]} | 1323 | modifiers={[restrictToVerticalAxis, restrictToFirstScrollableAncestor]} |
| 1324 | onDragStart={handleProjectDragStart} | 1324 | onDragStart={handleProjectDragStart} |
| 1325 | onDragEnd={handleProjectDragEnd} | 1325 | onDragEnd={handleProjectDragEnd} |
| 1326 | onDragCancel={handleProjectDragCancel} | 1326 | onDragCancel={handleProjectDragCancel} |