diff --git a/packages/frontend-core/src/components/sheet/HeaderRow.svelte b/packages/frontend-core/src/components/sheet/HeaderRow.svelte index 66807a0f65..f9095bfd45 100644 --- a/packages/frontend-core/src/components/sheet/HeaderRow.svelte +++ b/packages/frontend-core/src/components/sheet/HeaderRow.svelte @@ -14,9 +14,9 @@ {#each $visibleColumns as column} reorder.actions.startReordering(column.idx, e)} + reorderSource={$reorder.sourceColumn === column.name} + reorderTarget={$reorder.targetColumn === column.name} + on:mousedown={e => reorder.actions.startReordering(column.name, e)} width={column.width} left={column.left} > diff --git a/packages/frontend-core/src/components/sheet/NewRow.svelte b/packages/frontend-core/src/components/sheet/NewRow.svelte index 09173e68ed..c15d2e10c6 100644 --- a/packages/frontend-core/src/components/sheet/NewRow.svelte +++ b/packages/frontend-core/src/components/sheet/NewRow.svelte @@ -22,8 +22,8 @@ on:click={() => addRow(column)} width={column.width} left={column.left} - reorderSource={$reorder.columnIdx === column.idx} - reorderTarget={$reorder.swapColumnIdx === column.idx} + reorderSource={$reorder.sourceColumn === column.name} + reorderTarget={$reorder.targetColumn === column.name} /> {/each} diff --git a/packages/frontend-core/src/components/sheet/SheetRow.svelte b/packages/frontend-core/src/components/sheet/SheetRow.svelte index eee6f2cb1b..265964b725 100644 --- a/packages/frontend-core/src/components/sheet/SheetRow.svelte +++ b/packages/frontend-core/src/components/sheet/SheetRow.svelte @@ -25,8 +25,8 @@ {rowSelected} {rowHovered} selected={$selectedCellId === cellIdx} - reorderSource={$reorder.columnIdx === column.idx} - reorderTarget={$reorder.swapColumnIdx === column.idx} + reorderSource={$reorder.sourceColumn === column.name} + reorderTarget={$reorder.targetColumn === column.name} on:click={() => ($selectedCellId = cellIdx)} width={column.width} left={column.left} diff --git a/packages/frontend-core/src/components/sheet/SheetScrollWrapper.svelte b/packages/frontend-core/src/components/sheet/SheetScrollWrapper.svelte index d802f04a4a..0e7900204f 100644 --- a/packages/frontend-core/src/components/sheet/SheetScrollWrapper.svelte +++ b/packages/frontend-core/src/components/sheet/SheetScrollWrapper.svelte @@ -89,7 +89,6 @@