From 4575c4ab6fb3e5a4814dd29bbb710ddc898379c8 Mon Sep 17 00:00:00 2001 From: Thomas Chandelle Date: Tue, 14 Feb 2017 09:22:07 +0100 Subject: [PATCH] Do not draw circle when pointer not moved AND freehand is on --- src/ol/interaction/draw.js | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/ol/interaction/draw.js b/src/ol/interaction/draw.js index 86763dd3ed..cf9f93fc94 100644 --- a/src/ol/interaction/draw.js +++ b/src/ol/interaction/draw.js @@ -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;