Making the draw interaction work with pointer events

This is not yet optimized for mobile, and tests need to be
updated.
This commit is contained in:
ahocevar
2014-03-04 22:13:24 +01:00
committed by tsauerwein
parent be1318f133
commit d6880039cc
2 changed files with 34 additions and 20 deletions

View File

@@ -478,8 +478,8 @@ ol.interaction.Modify.prototype.handleMapBrowserEvent =
mapBrowserEvent.type == ol.MapBrowserEvent.EventType.POINTERMOVE) {
this.handlePointerMove_(mapBrowserEvent);
}
goog.base(this, 'handleMapBrowserEvent', mapBrowserEvent);
return !this.modifiable_;
return (goog.base(this, 'handleMapBrowserEvent', mapBrowserEvent) &&
!this.modifiable_);
};