mirror of
https://github.com/JGRennison/OpenTTD-patches.git
synced 2024-11-08 01:10:28 +00:00
(svn r9112) -Feature r9111: scrollwheel scrolling can now also scroll the smallmap
This commit is contained in:
parent
7d498a55de
commit
49d26fd754
@ -1707,6 +1707,11 @@ void MouseLoop(int click, int mousewheel)
|
||||
} else {
|
||||
switch (click) {
|
||||
case 1: DispatchLeftClickEvent(w, x - w->left, y - w->top); break;
|
||||
default:
|
||||
if (!scrollwheel_scrolling || w == NULL || w->window_class != WC_SMALLMAP) break;
|
||||
/* We try to use the scrollwheel to scroll since we didn't touch any of the buttons.
|
||||
* Simulate a right button click so we can get started. */
|
||||
/* fallthough */
|
||||
case 2: DispatchRightClickEvent(w, x - w->left, y - w->top); break;
|
||||
}
|
||||
}
|
||||
|
Loading…
Reference in New Issue
Block a user