[Libreoffice-commits] online.git: loleaflet/src
Tamás Zolnai (via logerrit)
logerrit at kemper.freedesktop.org
Fri Apr 3 22:28:49 UTC 2020
loleaflet/src/layer/tile/TileLayer.js | 4 ++--
1 file changed, 2 insertions(+), 2 deletions(-)
New commits:
commit 05752cececa6707ad8edcd2e46b66480209b8ca7
Author: Tamás Zolnai <tamas.zolnai at collabora.com>
AuthorDate: Fri Apr 3 16:50:10 2020 +0200
Commit: Tamás Zolnai <tamas.zolnai at collabora.com>
CommitDate: Sat Apr 4 00:28:30 2020 +0200
mobile: fix type error in cell cursor handler code.
Added in:
9374a2883537d41d6994e5a77fd45bb5fbe9a0d7
getWest and getNorth is a float value, not a pair of values.
We don't need actual subtraction here.
Change-Id: I2ffa964863eefcdb2758e5e920563c31f22b77b8
Reviewed-on: https://gerrit.libreoffice.org/c/online/+/91646
Tested-by: Jenkins CollaboraOffice <jenkinscollaboraoffice at gmail.com>
Reviewed-by: Tamás Zolnai <tamas.zolnai at collabora.com>
diff --git a/loleaflet/src/layer/tile/TileLayer.js b/loleaflet/src/layer/tile/TileLayer.js
index d5aa0c18d..3d3c86bf1 100644
--- a/loleaflet/src/layer/tile/TileLayer.js
+++ b/loleaflet/src/layer/tile/TileLayer.js
@@ -1070,8 +1070,8 @@ L.TileLayer = L.GridLayer.extend({
}
else if (!this._isEmptyRectangle(this._cellCursor)) {
// This is needed for jumping view to cursor position on tab switch
- horizontalDirection = sign(this._cellCursor.getWest() - L.Point(0, 0));
- verticalDirection = sign(this._cellCursor.getNorth() - L.Point(0, 0));
+ horizontalDirection = sign(this._cellCursor.getWest());
+ verticalDirection = sign(this._cellCursor.getNorth());
}
var onPgUpDn = false;
More information about the Libreoffice-commits
mailing list