Merge pull request #2467 from fredj/2460

Add workaround for mousewheel event name
This commit is contained in:
Frédéric Junod
2014-07-29 17:36:32 +02:00

View File

@@ -263,7 +263,8 @@ ol.Map = function(options) {
goog.events.EventType.TOUCHSTART,
goog.events.EventType.MSPOINTERDOWN,
ol.MapBrowserEvent.EventType.POINTERDOWN,
goog.events.MouseWheelHandler.EventType.MOUSEWHEEL
// see https://github.com/google/closure-library/pull/308
goog.userAgent.GECKO ? 'DOMMouseScroll' : 'mousewheel'
], goog.events.Event.stopPropagation);
goog.dom.appendChild(this.viewport_, this.overlayContainerStopEvent_);