Merge pull request #6488 from tchandelle/circle-pan

Do not draw circle when pointer not moved and freehand is on
This commit is contained in:
Andreas Hocevar
2017-02-14 15:49:47 +01:00
committed by GitHub

View File

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