Skip to content

Commit 528ee7c

Browse files
committed
fix #1331
1 parent 5cec011 commit 528ee7c

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

src/map/tool/DrawTool.js

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -269,7 +269,7 @@ class DrawTool extends MapTool {
269269
const actions = this._getRegisterMode()['action'];
270270
let dragging = false;
271271
for (let i = 0; i < actions.length; i++) {
272-
if (actions[i].indexOf('mousemove') >= 0) {
272+
if (actions[i].indexOf('mousedown') >= 0 || actions[i].indexOf('touchstart') >= 0) {
273273
dragging = true;
274274
break;
275275
}

0 commit comments

Comments
 (0)