diff --git a/src/industry_gui.cpp b/src/industry_gui.cpp index d30edbd4e5..c42bbb47a3 100644 --- a/src/industry_gui.cpp +++ b/src/industry_gui.cpp @@ -1131,6 +1131,13 @@ public: } } + void OnMouseWheel(int wheel) override + { + if (_settings_client.gui.scrollwheel_scrolling != SWS_OFF) { + DoZoomInOutWindow(wheel < 0 ? ZOOM_IN : ZOOM_OUT, this); + } + } + void OnQueryTextFinished(char *str) override { if (StrEmpty(str)) return;