Stop click event, as previously promised

This should have gone in with 3910318f1b.
This commit is contained in:
ahocevar
2012-09-28 16:46:21 +02:00
parent 9d8155cf9f
commit 6b395cafb5
2 changed files with 7 additions and 6 deletions

View File

@@ -151,10 +151,11 @@ ol.Map = function(container, mapOptionsLiteral) {
*/
this.overlayContainer_ = goog.dom.createDom(goog.dom.TagName.DIV,
'ol-overlaycontainer');
goog.events.listen(this.overlayContainer_,
ol.BrowserFeature.HAS_TOUCH ?
goog.events.EventType.TOUCHSTART : goog.events.EventType.MOUSEDOWN,
goog.events.Event.stopPropagation);
goog.events.listen(this.overlayContainer_, [
goog.events.EventType.CLICK,
ol.BrowserFeature.HAS_TOUCH ?
goog.events.EventType.TOUCHSTART : goog.events.EventType.MOUSEDOWN
], goog.events.Event.stopPropagation);
goog.dom.appendChild(this.viewport_, this.overlayContainer_);
var mapBrowserEventHandler = new ol.MapBrowserEventHandler(this);