[Libreoffice-commits] online.git: loleaflet/js
Libreoffice Gerrit user
logerrit at kemper.freedesktop.org
Fri Apr 5 08:59:41 UTC 2019
loleaflet/js/jquery.mCustomScrollbar.js | 9 +++++++++
1 file changed, 9 insertions(+)
New commits:
commit 6cc7bad2e035416044020cc9adc876a2d15d63db
Author: Szymon Kłos <szymon.klos at collabora.com>
AuthorDate: Thu Apr 4 18:36:21 2019 +0200
Commit: Szymon Kłos <szymon.klos at collabora.com>
CommitDate: Fri Apr 5 10:59:21 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>
diff --git a/loleaflet/js/jquery.mCustomScrollbar.js b/loleaflet/js/jquery.mCustomScrollbar.js
index e242263e2..9437406d2 100644
--- a/loleaflet/js/jquery.mCustomScrollbar.js
+++ b/loleaflet/js/jquery.mCustomScrollbar.js
@@ -632,6 +632,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