Make overlay container stop touchend and mouseup

This commit is contained in:
Éric Lemoine
2013-10-17 15:04:02 +02:00
parent 70eb5a5f13
commit 4c7f30c139

View File

@@ -237,7 +237,9 @@ ol.Map = function(options) {
goog.events.EventType.CLICK,
goog.events.EventType.DBLCLICK,
ol.BrowserFeature.HAS_TOUCH ?
goog.events.EventType.TOUCHSTART : goog.events.EventType.MOUSEDOWN
goog.events.EventType.TOUCHSTART : goog.events.EventType.MOUSEDOWN,
ol.BrowserFeature.HAS_TOUCH ?
goog.events.EventType.TOUCHEND : goog.events.EventType.MOUSEUP
], goog.events.Event.stopPropagation);
goog.dom.appendChild(this.viewport_, this.overlayContainerStopEvent_);