Refactors drag and drop manager for efficiency.

Streamlines drag and drop logic by removing unnecessary state variables
and simplifying column change handling, enhancing performance
and code maintainability.
This commit is contained in:
Janus C. H. Knudsen 2025-10-11 09:19:33 +02:00
parent 0764437642
commit 42e28f46bc
3 changed files with 8 additions and 37 deletions

View file

@ -82,7 +82,7 @@ export interface DragMouseEnterColumnEventPayload {
// Drag column change event payload
export interface DragColumnChangeEventPayload {
originalElement: HTMLElement;
draggedClone: HTMLElement | null;
draggedClone: HTMLElement;
previousColumn: ColumnBounds | null;
newColumn: ColumnBounds;
mousePosition: MousePosition;