Fix issue where map is stuck in drag mode

If the control container stops "up" events the map browser event handler won't see these events and will keep triggering "drag" events.
This commit is contained in:
Éric Lemoine
2013-11-16 23:41:48 +01:00
parent 559cad4cf3
commit 2a20693ffb

View File

@@ -245,11 +245,8 @@ ol.Map = function(options) {
goog.events.EventType.CLICK,
goog.events.EventType.DBLCLICK,
goog.events.EventType.MOUSEDOWN,
goog.events.EventType.MOUSEUP,
goog.events.EventType.TOUCHSTART,
goog.events.EventType.TOUCHEND,
goog.events.EventType.MSPOINTERDOWN,
goog.events.EventType.MSPOINTERUP
goog.events.EventType.MSPOINTERDOWN
], goog.events.Event.stopPropagation);
goog.dom.appendChild(this.viewport_, this.overlayContainerStopEvent_);