mirror of https://github.com/OpenTTD/OpenTTD
Fix: Extra viewport cannot be scrolled with right-click-close. (#10644)
parent
97cfd40649
commit
5f99c8c4aa
|
@ -134,6 +134,11 @@ public:
|
|||
this->viewport->dest_scrollpos_y = this->viewport->scrollpos_y;
|
||||
}
|
||||
|
||||
bool OnRightClick(Point pt, int widget) override
|
||||
{
|
||||
return widget == WID_EV_VIEWPORT;
|
||||
}
|
||||
|
||||
void OnMouseWheel(int wheel) override
|
||||
{
|
||||
if (_settings_client.gui.scrollwheel_scrolling != 2) {
|
||||
|
|
Loading…
Reference in New Issue