1
0
Fork 0

Add: Industry window zoom with mouse wheel

pull/12809/head
Steve Goldman 2024-06-25 11:36:25 -05:00
parent a1e94ccddb
commit 9b79676abd
1 changed files with 7 additions and 0 deletions

View File

@ -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;