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

pull/510/head
PeterN 1 year ago committed by GitHub
parent 97cfd40649
commit 5f99c8c4aa
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

@ -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…
Cancel
Save