loleaflet/src/map/handler/Map.Scroll.js |    5 ++++-
 1 file changed, 4 insertions(+), 1 deletion(-)

New commits:
commit 9ca84b6fe5d0ab84d0005530eedf76f8c7342e08
Author:     Pranam Lashkari <lpra...@collabora.com>
AuthorDate: Fri Sep 11 14:24:37 2020 +0530
Commit:     Andras Timar <andras.ti...@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 <jenkinscollaboraoff...@gmail.com>
    Reviewed-by: Andras Timar <andras.ti...@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);
                }
 
_______________________________________________
Libreoffice-commits mailing list
libreoffice-comm...@lists.freedesktop.org
https://lists.freedesktop.org/mailman/listinfo/libreoffice-commits

Reply via email to