Set shouldStopEvent to identity in DragBox
This fixes a bug where the map is panned when boxes are drawn.
This commit is contained in:
@@ -6,6 +6,7 @@ goog.provide('ol.interaction.DragBox');
|
|||||||
|
|
||||||
goog.require('goog.asserts');
|
goog.require('goog.asserts');
|
||||||
goog.require('goog.events.Event');
|
goog.require('goog.events.Event');
|
||||||
|
goog.require('goog.functions');
|
||||||
goog.require('ol.events.ConditionType');
|
goog.require('ol.events.ConditionType');
|
||||||
goog.require('ol.events.condition');
|
goog.require('ol.events.condition');
|
||||||
goog.require('ol.interaction.Pointer');
|
goog.require('ol.interaction.Pointer');
|
||||||
@@ -192,3 +193,9 @@ ol.interaction.DragBox.prototype.handlePointerDown =
|
|||||||
return false;
|
return false;
|
||||||
}
|
}
|
||||||
};
|
};
|
||||||
|
|
||||||
|
|
||||||
|
/**
|
||||||
|
* @inheritDoc
|
||||||
|
*/
|
||||||
|
ol.interaction.DragBox.prototype.shouldStopEvent = goog.functions.identity;
|
||||||
|
|||||||
Reference in New Issue
Block a user