loleaflet/src/control/Control.LokDialog.js |    2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)

New commits:
commit c43a6fb0c44630cb6d1b24138a064aa24beaf28f
Author:     Szymon Kłos <szymon.k...@collabora.com>
AuthorDate: Mon Jun 10 16:27:28 2019 +0200
Commit:     Szymon Kłos <szymon.k...@collabora.com>
CommitDate: Tue Oct 29 19:59:17 2019 +0100

    Set a threshold for a pan gesture
    
    Change-Id: I98dd3eb31e3c70e6018dbfba3c1b5fbcc109c3d0

diff --git a/loleaflet/src/control/Control.LokDialog.js 
b/loleaflet/src/control/Control.LokDialog.js
index f21cc2fb9..33cf23001 100644
--- a/loleaflet/src/control/Control.LokDialog.js
+++ b/loleaflet/src/control/Control.LokDialog.js
@@ -675,7 +675,7 @@ L.Control.LokDialog = L.Control.extend({
                zoomTargets.push({key: targetId, value: zoomTarget, 
transformation: transformation, initialState: state, width:width, height: 
height});
 
                var hammerAll = new Hammer(canvas);
-               hammerAll.add(new Hammer.Pan({ threshold: 0, pointers: 0 }));
+               hammerAll.add(new Hammer.Pan({ threshold: 30, pointers: 0 }));
                hammerAll.add(new Hammer.Pinch({ threshold: 0 
})).recognizeWith([hammerAll.get('pan')]);
 
                hammerAll.on('panstart panmove panstop', function(ev) {
_______________________________________________
Libreoffice-commits mailing list
libreoffice-comm...@lists.freedesktop.org
https://lists.freedesktop.org/mailman/listinfo/libreoffice-commits

Reply via email to