diff --git a/modules/ui/notice.js b/modules/ui/notice.js index 4f21c8090..86353a968 100644 --- a/modules/ui/notice.js +++ b/modules/ui/notice.js @@ -1,5 +1,7 @@ import _debounce from 'lodash-es/debounce'; +import { event as d3_event } from 'd3-selection'; + import { t } from '../util/locale'; import { svgIcon } from '../svg/index'; @@ -16,6 +18,10 @@ export function uiNotice(context) { .attr('class', 'zoom-to notice fillD') .on('click', function() { context.map().zoom(context.minEditableZoom()); + }) + .on('wheel', function() { // let wheel events pass through #4482 + var e2 = new WheelEvent(d3_event.type, d3_event); + context.surface().node().dispatchEvent(e2); }); button