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);
|
this._lastMousePos = this._map.mouseEventToContainerPoint(e);
|
||||||
|
|
||||||
clearTimeout(this._timer);
|
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);
|
L.DomEvent.preventDefault(e);
|
||||||
},
|
},
|
||||||
|
Loading…
Reference in New Issue
Block a user