loleaflet/src/control/Control.Scroll.js |   15 +++++++--------
 1 file changed, 7 insertions(+), 8 deletions(-)

New commits:
commit c7a62fb304134d57008e3cc2c29b9178aa4c86fe
Author:     Henry Castro <hcas...@collabora.com>
AuthorDate: Tue Sep 11 22:13:53 2018 -0400
Commit:     Henry Castro <hcas...@collabora.com>
CommitDate: Wed Sep 12 07:35:37 2018 -0400

    loleaflet: mobile: fix row/column headers
    
    Change-Id: I126ec8108b8d043477b96616f048bf12a2ce3b0f

diff --git a/loleaflet/src/control/Control.Scroll.js 
b/loleaflet/src/control/Control.Scroll.js
index ead1a68a3..aa12e15dd 100644
--- a/loleaflet/src/control/Control.Scroll.js
+++ b/loleaflet/src/control/Control.Scroll.js
@@ -17,15 +17,14 @@ L.Control.Scroll = L.Control.extend({
                this._prevDocWidth = 0;
                this._prevDocHeight = 0;
 
-               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);
+               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) {
                        var control = this;
                        var autoHideTimeout = null;
                        $('.scroll-container').mCustomScrollbar({
_______________________________________________
Libreoffice-commits mailing list
libreoffice-comm...@lists.freedesktop.org
https://lists.freedesktop.org/mailman/listinfo/libreoffice-commits

Reply via email to