Fix: Extra viewport cannot be scrolled with right-click-close. (#10644)

This commit is contained in:
PeterN
2023-04-12 20:14:48 +01:00
committed by GitHub
parent 97cfd40649
commit 5f99c8c4aa

View File

@@ -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) {