Do not draw circle when pointer not moved AND freehand is on

This commit is contained in:
Thomas Chandelle
2017-02-14 09:22:07 +01:00
parent fbd954ac7c
commit 4575c4ab6f

View File

@@ -374,7 +374,7 @@ ol.interaction.Draw.handleUpEvent_ = function(event) {
this.addToDrawing_(event);
}
pass = false;
} else if (circleMode) {
} else if (circleMode && this.freehand_) {
this.finishCoordinate_ = null;
}
return pass;