[Libreoffice-commits] online.git: loleaflet/js

Libreoffice Gerrit user logerrit at kemper.freedesktop.org
Wed Nov 21 17:29:38 UTC 2018


 loleaflet/js/jquery.mCustomScrollbar.js |    2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)

New commits:
commit 0656ed49900e9444a9e1c524969df93810aec517
Author:     Tor Lillqvist <tml at collabora.com>
AuthorDate: Wed Nov 21 19:27:10 2018 +0200
Commit:     Tor Lillqvist <tml at collabora.com>
CommitDate: Wed Nov 21 19:28:20 2018 +0200

    Brown paper bag fix
    
    My previous commit broke scrolling for normal Online with touchpad
    (and presumably wheel mouse). So do it only in the mobile app case.
    
    Change-Id: Ia085549b66ed4584c75d5efb78948f19a33c7907

diff --git a/loleaflet/js/jquery.mCustomScrollbar.js b/loleaflet/js/jquery.mCustomScrollbar.js
index fd8b0ed0b..0a933b063 100644
--- a/loleaflet/js/jquery.mCustomScrollbar.js
+++ b/loleaflet/js/jquery.mCustomScrollbar.js
@@ -2120,7 +2120,7 @@ and dependencies (minified).
 					}
 				},onUpdate:function(){
 					if(options.callbacks && options.onUpdate){
-						if (options.drag) {
+						if (!window.ThisIsAMobileApp || options.drag) {
 							/* callbacks: whileScrolling */
 							if(_cb("whileScrolling")){_mcs(); o.callbacks.whileScrolling.call(el[0]);}
 						}


More information about the Libreoffice-commits mailing list