[Libreoffice-commits] online.git: Branch 'distro/collabora/collabora-online-4' - loleaflet/js

Libreoffice Gerrit user logerrit at kemper.freedesktop.org
Fri May 3 16:03:11 UTC 2019


 loleaflet/js/jquery.mCustomScrollbar.js |    9 +++++++++
 1 file changed, 9 insertions(+)

New commits:
commit 64949d2a044986ef992e323ad675e0c808496563
Author:     Szymon Kłos <szymon.klos at collabora.com>
AuthorDate: Thu Apr 4 18:36:21 2019 +0200
Commit:     Jan Holesovsky <kendy at collabora.com>
CommitDate: Fri May 3 18:02:51 2019 +0200

    Calc scrolling with selection fix
    
    Scrolling with selected sheet was endless.
    This change allows scrolling using mouse wheel
    when scrollbar is close to the end of screen
    and prevents from doubled updates.
    
    Extension of work done before in:
    ec24337b11e097e98266c51d8fe56c42a8ec613a
    
    Change-Id: Id76818158c0d9988b323ec52a408efd5ae6a9da5
    Reviewed-on: https://gerrit.libreoffice.org/70266
    Reviewed-by: Szymon Kłos <szymon.klos at collabora.com>
    Tested-by: Szymon Kłos <szymon.klos at collabora.com>
    Reviewed-on: https://gerrit.libreoffice.org/70290
    Reviewed-by: Jan Holesovsky <kendy at collabora.com>
    Tested-by: Jan Holesovsky <kendy at collabora.com>

diff --git a/loleaflet/js/jquery.mCustomScrollbar.js b/loleaflet/js/jquery.mCustomScrollbar.js
index abaa9b9e0..14bf9d9a2 100644
--- a/loleaflet/js/jquery.mCustomScrollbar.js
+++ b/loleaflet/js/jquery.mCustomScrollbar.js
@@ -643,6 +643,15 @@ and dependencies (minified).
 					
 					if($this.data(pluginPfx)){ /* check if plugin has initialized */
 					
+						/* Ugly hack extension: When vertical scrollbar position
+						   was very close to the end of spreadsheet, next part of
+						   the document has to be loaded. This contidion is fulfilled
+						   in that case. We need to ignore it to prevent scrollbar
+						   from reaching the end what blocks possibility to scroll down. */
+						if(!window.ThisIsAMobileApp && options && options.timeout == undefined
+							&& options.calledFromInvalidateCursorMsg == undefined)
+							return;
+
 						var d=$this.data(pluginPfx),o=d.opt,
 							/* method default options */
 							methodDefaults={


More information about the Libreoffice-commits mailing list