[Libreoffice-commits] online.git: loleaflet/src
Libreoffice Gerrit user
logerrit at kemper.freedesktop.org
Fri Sep 21 12:25:54 UTC 2018
loleaflet/src/control/Control.Scroll.js | 15 ++++++++-------
1 file changed, 8 insertions(+), 7 deletions(-)
New commits:
commit 14c65624553620fb3af568469975f978faa53998
Author: Aron Budea <aron.budea at collabora.com>
AuthorDate: Fri Sep 21 14:21:10 2018 +0200
Commit: Aron Budea <aron.budea at collabora.com>
CommitDate: Fri Sep 21 14:25:35 2018 +0200
Revert "loleaflet: mobile: fix row/column headers"
This reverts commit c7a62fb304134d57008e3cc2c29b9178aa4c86fe.
Change-Id: Ib565080314564255c39874c38066734911348432
Reviewed-on: https://gerrit.libreoffice.org/60871
Reviewed-by: Aron Budea <aron.budea at collabora.com>
Tested-by: Aron Budea <aron.budea at collabora.com>
diff --git a/loleaflet/src/control/Control.Scroll.js b/loleaflet/src/control/Control.Scroll.js
index aa12e15dd..ead1a68a3 100644
--- a/loleaflet/src/control/Control.Scroll.js
+++ b/loleaflet/src/control/Control.Scroll.js
@@ -17,14 +17,15 @@ L.Control.Scroll = L.Control.extend({
this._prevDocWidth = 0;
this._prevDocHeight = 0;
- map.on('scrollto', this._onScrollTo, this);
- map.on('scrollby', this._onScrollBy, this);
- map.on('scrollvelocity', this._onScrollVelocity, this);
- map.on('handleautoscroll', this._onHandleAutoScroll, this);
- map.on('updatescrolloffset', this._onUpdateScrollOffset, this);
- map.on('updaterowcolumnheaders', this._onUpdateRowColumnHeaders, this);
-
if (!L.Browser.mobile) {
+ map.on('scrollto', this._onScrollTo, this);
+ map.on('scrollby', this._onScrollBy, this);
+ map.on('scrollvelocity', this._onScrollVelocity, this);
+ map.on('handleautoscroll', this._onHandleAutoScroll, this);
+ map.on('docsize', this._onUpdateSize, this);
+ map.on('updatescrolloffset', this._onUpdateScrollOffset, this);
+ map.on('updaterowcolumnheaders', this._onUpdateRowColumnHeaders, this);
+
var control = this;
var autoHideTimeout = null;
$('.scroll-container').mCustomScrollbar({
More information about the Libreoffice-commits
mailing list