Use moving() method to simplify check in canvas renderer
This commit is contained in:
parent
b0d5c12b50
commit
0df4d57f91
@ -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);
|
||||||
|
Loading…
Reference in New Issue
Block a user