Set shouldStopEvent to identity in DragBox

This fixes a bug where the map is panned when boxes are drawn.
This commit is contained in:
Éric Lemoine
2014-04-07 16:57:02 +02:00
parent 732ec7c2db
commit eac9b71b95

View File

@@ -6,6 +6,7 @@ goog.provide('ol.interaction.DragBox');
goog.require('goog.asserts');
goog.require('goog.events.Event');
goog.require('goog.functions');
goog.require('ol.events.ConditionType');
goog.require('ol.events.condition');
goog.require('ol.interaction.Pointer');
@@ -192,3 +193,9 @@ ol.interaction.DragBox.prototype.handlePointerDown =
return false;
}
};
/**
* @inheritDoc
*/
ol.interaction.DragBox.prototype.shouldStopEvent = goog.functions.identity;