From 510076290d029e371bf756bd7d58042bb01b2c16 Mon Sep 17 00:00:00 2001 From: Thomas Chandelle Date: Thu, 1 Dec 2016 10:26:39 +0100 Subject: [PATCH] Always stop event propagation when removing vertex --- src/ol/interaction/modify.js | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/src/ol/interaction/modify.js b/src/ol/interaction/modify.js index 2dff8c540f..6aaf162b42 100644 --- a/src/ol/interaction/modify.js +++ b/src/ol/interaction/modify.js @@ -823,16 +823,16 @@ ol.interaction.Modify.prototype.insertVertex_ = function(segmentData, vertex) { * @api */ ol.interaction.Modify.prototype.removePoint = function() { - var handled = false; if (this.lastPointerEvent_ && this.lastPointerEvent_.type != ol.MapBrowserEvent.EventType.POINTERDRAG) { var evt = this.lastPointerEvent_; this.willModifyFeatures_(evt); - handled = this.removeVertex_(); + this.removeVertex_(); this.dispatchEvent(new ol.interaction.Modify.Event( ol.interaction.Modify.EventType.MODIFYEND, this.features_, evt)); this.modified_ = false; + return true; } - return handled; + return false; }; /**