summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorCaolán McNamara <caolan.mcnamara@collabora.com>2024-07-03 12:54:53 +0100
committerSzymon Kłos <eszkadev@gmail.com>2024-07-03 17:05:42 +0200
commitcb3cc65d23e84f5a704238fb853b9b33c5d2aa70 (patch)
treeda8b298f66434e1eba686794314802d01199eaab
parenterror on dragging col/row indicator in writer table (diff)
downloadonline-cb3cc65d23e84f5a704238fb853b9b33c5d2aa70.tar.gz
online-cb3cc65d23e84f5a704238fb853b9b33c5d2aa70.zip
_prevMouseOverEntry seen as null on dragging row resize indicator right
in a spreadsheet with a rows tall enough to show the vertical resize indicator in the column ui to the spreadsheet left select the row by clicking on its entry in the column ui, then hover the mouse over the resize indicator and click and drag to the right, and release over the spreadsheet content, it might take 3 or 4 attempts. Signed-off-by: Caolán McNamara <caolan.mcnamara@collabora.com> Change-Id: I95d3a76b33a50d4f1cc600832c6759785f0f16cf
-rw-r--r--browser/src/control/Control.Header.ts4
1 files changed, 3 insertions, 1 deletions
diff --git a/browser/src/control/Control.Header.ts b/browser/src/control/Control.Header.ts
index 7a65945b96..0151520468 100644
--- a/browser/src/control/Control.Header.ts
+++ b/browser/src/control/Control.Header.ts
@@ -563,7 +563,9 @@ export class Header extends app.definitions.canvasSectionObject {
this._dragDistance = dragDistance;
this.containerObject.requestReDraw(); // Remove previously drawn line and paint a new one.
- if (this._lastSelectedIndex == this._prevMouseOverEntry.index || this._dragEntry)
+ if (this._prevMouseOverEntry && this._lastSelectedIndex == this._prevMouseOverEntry.index)
+ return;
+ if (this._dragEntry)
return;
const modifier = typeof this._lastSelectedIndex === 'number' && this._lastSelectedIndex >= 0 ? UNOModifier.SHIFT : 0;
this._lastSelectedIndex = this._mouseOverEntry.index;