slightly increase scroll-wheel-zoom responsiveness
This commit is contained in:
parent
58299c8121
commit
85b9baa41f
@ -23,7 +23,7 @@ L.Map.ScrollWheelZoom = L.Handler.extend({
|
||||
this._lastMousePos = this._map.mouseEventToContainerPoint(e);
|
||||
|
||||
clearTimeout(this._timer);
|
||||
this._timer = setTimeout(L.Util.bind(this._performZoom, this), 50);
|
||||
this._timer = setTimeout(L.Util.bind(this._performZoom, this), 40);
|
||||
|
||||
L.DomEvent.preventDefault(e);
|
||||
},
|
||||
@ -57,4 +57,4 @@ L.Map.ScrollWheelZoom = L.Handler.extend({
|
||||
}
|
||||
});
|
||||
|
||||
L.Map.addInitHook('addHandler', 'scrollWheelZoom', L.Map.ScrollWheelZoom);
|
||||
L.Map.addInitHook('addHandler', 'scrollWheelZoom', L.Map.ScrollWheelZoom);
|
||||
|
Loading…
Reference in New Issue
Block a user