From 01670c350713a7f0b597a9656ed23f7b3a4b9a97 Mon Sep 17 00:00:00 2001 From: zzxming Date: Wed, 27 Nov 2024 08:57:28 +0800 Subject: [PATCH] fix: shift resize box head select behavior --- src/modules/table-resize/table-resize-box.ts | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/src/modules/table-resize/table-resize-box.ts b/src/modules/table-resize/table-resize-box.ts index a0fcacd..40519e2 100644 --- a/src/modules/table-resize/table-resize-box.ts +++ b/src/modules/table-resize/table-resize-box.ts @@ -69,10 +69,12 @@ export class TableResizeBox extends TableResizeCommon { y: Math.max(currentBoundary[1].y, this.lastHeaderSelect[1].y), }; } + else { + this.lastHeaderSelect = currentBoundary; + } tableSelection.selectedTds = tableSelection.computeSelectedTds(...currentBoundary); tableSelection.showSelection(); - this.lastHeaderSelect = currentBoundary; } };