Block removePoint during while dragging

This commit is contained in:
giohappy
2016-04-29 09:00:14 +02:00
parent 36b8f31f40
commit cd2ea6c7d6

View File

@@ -889,7 +889,7 @@ ol.interaction.Modify.prototype.insertVertex_ = function(segmentData, vertex) {
*/
ol.interaction.Modify.prototype.removePoint = function() {
var handled = false;
if (this.lastPointerEvent_) {
if (this.lastPointerEvent_ && this.lastPointerEvent_.type != ol.MapBrowserEvent.EventType.POINTERDRAG) {
var evt = this.lastPointerEvent_;
this.willModifyFeatures_(evt);
handled = this.removeVertex_();