Fix: Zoom-scroll extra viewports only if the mouse cursor is over the viewport. (#14209)
This commit is contained in:
@@ -433,8 +433,9 @@ struct MainWindow : Window
|
||||
this->refresh_timeout.Reset();
|
||||
}
|
||||
|
||||
void OnMouseWheel(int wheel) override
|
||||
void OnMouseWheel(int wheel, WidgetID widget) override
|
||||
{
|
||||
if (widget != WID_M_VIEWPORT) return;
|
||||
if (_settings_client.gui.scrollwheel_scrolling != SWS_OFF) {
|
||||
bool in = wheel < 0;
|
||||
|
||||
|
||||
Reference in New Issue
Block a user