slightly increase scroll-wheel-zoom responsiveness

This commit is contained in:
Vladimir Agafonkin 2012-07-18 14:04:13 +03:00
parent 58299c8121
commit 85b9baa41f

View File

@ -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);