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:
parent
fce665f604
commit
96136d6111
1 changed files with 4 additions and 0 deletions
|
@ -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');
|
||||
|
|
Loading…
Reference in a new issue