Fix: Zoom-scroll extra viewports only if the mouse cursor is over the viewport. (#14209)
This commit is contained in:
@@ -1131,8 +1131,9 @@ public:
|
||||
}
|
||||
}
|
||||
|
||||
void OnMouseWheel(int wheel) override
|
||||
void OnMouseWheel(int wheel, WidgetID widget) override
|
||||
{
|
||||
if (widget != WID_IV_VIEWPORT) return;
|
||||
if (_settings_client.gui.scrollwheel_scrolling != SWS_OFF) {
|
||||
DoZoomInOutWindow(wheel < 0 ? ZOOM_IN : ZOOM_OUT, this);
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user