[Libreoffice-commits] online.git: Branch 'distro/collabora/co-4-2' - loleaflet/src
Pranam Lashkari (via logerrit)
logerrit at kemper.freedesktop.org
Tue Sep 15 13:48:12 UTC 2020
loleaflet/src/map/handler/Map.Scroll.js | 5 ++++-
1 file changed, 4 insertions(+), 1 deletion(-)
New commits:
commit 9ca84b6fe5d0ab84d0005530eedf76f8c7342e08
Author: Pranam Lashkari <lpranam at collabora.com>
AuthorDate: Fri Sep 11 14:24:37 2020 +0530
Commit: Andras Timar <andras.timar at collabora.com>
CommitDate: Tue Sep 15 15:47:53 2020 +0200
scrolling: fixed multitouch horizontal scrolling
Change-Id: I2b30be5bd2d96c4757cd4059a28fb08a702bc3ca
Reviewed-on: https://gerrit.libreoffice.org/c/online/+/102420
Tested-by: Jenkins CollaboraOffice <jenkinscollaboraoffice at gmail.com>
Reviewed-by: Andras Timar <andras.timar at collabora.com>
diff --git a/loleaflet/src/map/handler/Map.Scroll.js b/loleaflet/src/map/handler/Map.Scroll.js
index 9377f2d75..3f088cd23 100644
--- a/loleaflet/src/map/handler/Map.Scroll.js
+++ b/loleaflet/src/map/handler/Map.Scroll.js
@@ -48,7 +48,10 @@ L.Map.Scroll = L.Handler.extend({
this._timer = setTimeout(L.bind(this._performScroll, this), left);
}
else {
- this._vertical = 1;
+ if (Math.abs(e.deltaX) > Math.abs(e.deltaY))
+ this._vertical = 0;
+ else
+ this._vertical = 1;
this._timer = setTimeout(L.bind(this._performScroll, this), left);
}
More information about the Libreoffice-commits
mailing list