From 88a555c0d29f27b201b9c08b3260a5e9f9adafb5 Mon Sep 17 00:00:00 2001 From: flowerField Date: Wed, 7 Apr 2021 10:17:36 +0800 Subject: [PATCH] =?UTF-8?q?=E8=A7=A3=E5=86=B3=E6=96=B9=E5=90=91=E9=94=AE?= =?UTF-8?q?=E6=93=8D=E4=BD=9C=E5=90=88=E5=B9=B6=E5=8D=95=E5=85=83=E6=A0=BC?= =?UTF-8?q?=E6=83=85=E5=86=B5=E4=B8=8B=E9=80=89=E5=8C=BA=E4=B8=8D=E6=AD=A3?= =?UTF-8?q?=E7=A1=AE=E9=97=AE=E9=A2=98?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- src/controllers/sheetMove.js | 11 +++++++---- 1 file changed, 7 insertions(+), 4 deletions(-) diff --git a/src/controllers/sheetMove.js b/src/controllers/sheetMove.js index e6a8b32..8096357 100644 --- a/src/controllers/sheetMove.js +++ b/src/controllers/sheetMove.js @@ -441,13 +441,16 @@ function luckysheetMoveHighlightCell(postion, index, type, isScroll) { else{ row = Store.visibledatarow[moveX]; row_pre = moveX - 1 == -1 ? 0 : Store.visibledatarow[moveX - 1]; - row_index = moveX; - row_index_ed = moveX; + // row_index = moveX; + // row_index_ed = moveX; col = Store.visibledatacolumn[moveY]; col_pre = moveY - 1 == -1 ? 0 : Store.visibledatacolumn[moveY - 1]; - col_index = moveY; - col_index_ed = moveY; + // col_index = moveY; + // col_index_ed = moveY; + + row_index = row_index_ed = curR; + col_index = col_index_ed = curC; } last["row"] = [row_index, row_index_ed];