Only check for moving draggable in canvas renderer when map is draggable

This commit is contained in:
Jonas Coch 2015-10-15 17:21:22 +02:00
parent 55fe462508
commit ace08c17ca

View File

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