1
0
Fork 0

Add: Town window zoom with mouse wheel

pull/12811/head
Steve Goldman 2024-06-25 11:46:28 -05:00 committed by rubidium42
parent a23ff227e7
commit 705207e2ce
1 changed files with 7 additions and 0 deletions

View File

@ -587,6 +587,13 @@ public:
} }
} }
void OnMouseWheel(int wheel) override
{
if (_settings_client.gui.scrollwheel_scrolling != SWS_OFF) {
DoZoomInOutWindow(wheel < 0 ? ZOOM_IN : ZOOM_OUT, this);
}
}
/** /**
* Some data on this window has become invalid. * Some data on this window has become invalid.
* @param data Information about the changed data. * @param data Information about the changed data.