mirror of
https://github.com/OpenTTD/OpenTTD
synced 2026-01-19 02:12:37 +01:00
Fix: Zoom-scroll extra viewports only if the mouse cursor is over the viewport. (#14209)
This commit is contained in:
@@ -361,8 +361,9 @@ struct IConsoleWindow : Window
|
||||
return GetCharAtPosition(_iconsole_cmdline.GetText(), pt.x - delta);
|
||||
}
|
||||
|
||||
void OnMouseWheel(int wheel) override
|
||||
void OnMouseWheel(int wheel, WidgetID widget) override
|
||||
{
|
||||
if (widget != WID_C_BACKGROUND) return;
|
||||
this->Scroll(-wheel);
|
||||
}
|
||||
|
||||
|
||||
Reference in New Issue
Block a user