From 0df4d57f911a38e1e5ed9fec828c8cc3b419f7b1 Mon Sep 17 00:00:00 2001 From: Jonas Coch Date: Thu, 15 Oct 2015 20:45:23 +0200 Subject: [PATCH] Use moving() method to simplify check in canvas renderer --- src/layer/vector/Canvas.js | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/layer/vector/Canvas.js b/src/layer/vector/Canvas.js index b4cc9f3d..38313885 100644 --- a/src/layer/vector/Canvas.js +++ b/src/layer/vector/Canvas.js @@ -215,7 +215,7 @@ L.Canvas = L.Renderer.extend({ }, _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); this._handleMouseOut(e, point);