loleaflet: timeout for triggering 'press' event increased to 500 ms

That has been done in order to avoid to trigger the context menu too
early; so the user can start panning in a relaxed way.

Change-Id: I64657efd55649584be74c96a31fbe2199a25f91a
This commit is contained in:
Marco Cecchetti 2019-10-20 14:25:56 +02:00
parent fce665f604
commit 96136d6111

View file

@ -37,6 +37,10 @@ L.Map.TouchGesture = L.Handler.extend({
this._hammer.get('pinch').set({
enable: true
});
// avoid to trigger the context menu too early so the user can start panning in a relaxed way
this._hammer.get('press').set({
time: 500
});
var singleTap = this._hammer.get('tap');
var doubleTap = this._hammer.get('doubletap');