summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorSzymon Kłos <szymon.klos@collabora.com>2020-07-13 10:28:54 +0200
committerSzymon Kłos <szymon.klos@collabora.com>2020-07-13 11:22:40 +0200
commita7eab309a68944401ab1ad8869cfc3aed5d843f1 (patch)
tree7e2cf47321c497ed9b7bd1fbc22660b43a796406
parentWhen copy disabled use empty content in clipboard (diff)
downloadonline-a7eab309a68944401ab1ad8869cfc3aed5d843f1.tar.gz
online-a7eab309a68944401ab1ad8869cfc3aed5d843f1.zip
Don't show cell selection resize handles for desktop
Change-Id: I6ac7518bd46308fffd692be576d368b5e5067fd6 Reviewed-on: https://gerrit.libreoffice.org/c/online/+/98619 Tested-by: Jenkins Tested-by: Jenkins CollaboraOffice <jenkinscollaboraoffice@gmail.com> Reviewed-by: Szymon Kłos <szymon.klos@collabora.com>
-rw-r--r--loleaflet/src/layer/tile/TileLayer.js10
1 files changed, 5 insertions, 5 deletions
diff --git a/loleaflet/src/layer/tile/TileLayer.js b/loleaflet/src/layer/tile/TileLayer.js
index 3cd53c3cfc..198b511f13 100644
--- a/loleaflet/src/layer/tile/TileLayer.js
+++ b/loleaflet/src/layer/tile/TileLayer.js
@@ -3079,11 +3079,11 @@ L.TileLayer = L.GridLayer.extend({
},
_onUpdateCellResizeMarkers: function () {
- var singleCellOnDesktop = window.mode.isDesktop()
- && !this._cellSelectionArea
- && (this._cellCursor && !this._isEmptyRectangle(this._cellCursor));
+ var selectionOnDesktop = window.mode.isDesktop()
+ && (this._cellSelectionArea
+ || (this._cellCursor && !this._isEmptyRectangle(this._cellCursor)));
- if (!singleCellOnDesktop &&
+ if (!selectionOnDesktop &&
(this._selections.getLayers().length !== 0 || (this._cellCursor && !this._isEmptyRectangle(this._cellCursor)))) {
if (this._isEmptyRectangle(this._cellSelectionArea) && this._isEmptyRectangle(this._cellCursor)) {
return;
@@ -3119,7 +3119,7 @@ L.TileLayer = L.GridLayer.extend({
}
}
}
- else if (singleCellOnDesktop) {
+ else if (selectionOnDesktop) {
cellRectangle = this._cellSelectionArea ? this._cellSelectionArea : this._cellCursor;
if (this._cellAutoFillArea) {