Use moving() method to simplify check in canvas renderer

This commit is contained in:
Jonas Coch 2015-10-15 20:45:23 +02:00
parent b0d5c12b50
commit 0df4d57f91

View File

@ -215,7 +215,7 @@ L.Canvas = L.Renderer.extend({
}, },
_onMouseMove: function (e) { _onMouseMove: function (e) {
if (!this._map || (this._map.dragging._enabled && this._map.dragging._draggable._moving) || this._map._animatingZoom) { return; } if (!this._map || this._map.dragging.moving() || this._map._animatingZoom) { return; }
var point = this._map.mouseEventToLayerPoint(e); var point = this._map.mouseEventToLayerPoint(e);
this._handleMouseOut(e, point); this._handleMouseOut(e, point);