Merge pull request #5293 from giohappy/master

Block removePoint while dragging
This commit is contained in:
Andreas Hocevar
2016-04-29 10:46:40 +02:00
+1 -1
View File
@@ -889,7 +889,7 @@ ol.interaction.Modify.prototype.insertVertex_ = function(segmentData, vertex) {
*/ */
ol.interaction.Modify.prototype.removePoint = function() { ol.interaction.Modify.prototype.removePoint = function() {
var handled = false; var handled = false;
if (this.lastPointerEvent_) { if (this.lastPointerEvent_ && this.lastPointerEvent_.type != ol.MapBrowserEvent.EventType.POINTERDRAG) {
var evt = this.lastPointerEvent_; var evt = this.lastPointerEvent_;
this.willModifyFeatures_(evt); this.willModifyFeatures_(evt);
handled = this.removeVertex_(); handled = this.removeVertex_();