From 4e98e86b141150e0fa51a902cfceff5e9bac1abc Mon Sep 17 00:00:00 2001 From: Tim Schaub Date: Thu, 31 Oct 2013 09:51:29 -0600 Subject: [PATCH] Stop dblclick propagation while editing --- src/ol/interaction/drawinteraction.js | 2 ++ 1 file changed, 2 insertions(+) diff --git a/src/ol/interaction/drawinteraction.js b/src/ol/interaction/drawinteraction.js index 13bd1d9c34..28125aed3a 100644 --- a/src/ol/interaction/drawinteraction.js +++ b/src/ol/interaction/drawinteraction.js @@ -125,6 +125,8 @@ ol.interaction.Draw.prototype.handleMapBrowserEvent = function(event) { pass = this.handleClick_(event); } else if (event.type === ol.MapBrowserEvent.EventType.MOUSEMOVE) { pass = this.handleMove_(event); + } else if (event.type === ol.MapBrowserEvent.EventType.DBLCLICK) { + pass = false; } return pass; };