Skip to content

Commit 9530407

Browse files
committed
fix mousemove on drawTool
1 parent cd6a088 commit 9530407

File tree

1 file changed

+3
-0
lines changed

1 file changed

+3
-0
lines changed

src/map/tool/DrawTool.js

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -473,6 +473,9 @@ class DrawTool extends MapTool {
473473
this._createGeometry(event);
474474
return;
475475
}
476+
if (!this._geometry) {
477+
return;
478+
}
476479
let containerPoint = this._getMouseContainerPoint(event);
477480
if (!this._isValidContainerPoint(containerPoint)) {
478481
return;

0 commit comments

Comments
 (0)