Merge pull request #2467 from fredj/2460
Add workaround for mousewheel event name
This commit is contained in:
@@ -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_);
|
||||
|
||||
|
||||
Reference in New Issue
Block a user