Stop dblclick propagation while editing
This commit is contained in:
@@ -125,6 +125,8 @@ ol.interaction.Draw.prototype.handleMapBrowserEvent = function(event) {
|
|||||||
pass = this.handleClick_(event);
|
pass = this.handleClick_(event);
|
||||||
} else if (event.type === ol.MapBrowserEvent.EventType.MOUSEMOVE) {
|
} else if (event.type === ol.MapBrowserEvent.EventType.MOUSEMOVE) {
|
||||||
pass = this.handleMove_(event);
|
pass = this.handleMove_(event);
|
||||||
|
} else if (event.type === ol.MapBrowserEvent.EventType.DBLCLICK) {
|
||||||
|
pass = false;
|
||||||
}
|
}
|
||||||
return pass;
|
return pass;
|
||||||
};
|
};
|
||||||
|
|||||||
Reference in New Issue
Block a user