Changeset - r27077:2007da10bda1
[Not reviewed]
master
0 1 0
PeterN - 14 months ago 2023-04-12 19:14:48
peter1138@openttd.org
Fix: Extra viewport cannot be scrolled with right-click-close. (#10644)
1 file changed with 5 insertions and 0 deletions:
0 comments (0 inline, 0 general)
src/viewport_gui.cpp
Show inline comments
 
@@ -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) {
0 comments (0 inline, 0 general)