mirror of https://github.com/OpenRCT2/OpenRCT2.git
Fix #6047: Scrolling in spin boxes does not work any more
Regression from #5775.
This commit is contained in:
parent
e839a46c67
commit
2ec0df1f3d
|
@ -283,7 +283,7 @@ static bool window_other_wheel_input(rct_window *w, rct_widgetindex widgetIndex,
|
|||
// Preview / Increment / Decrement
|
||||
if (widgetIndex >= previewWidgetIndex && widgetIndex < previewWidgetIndex + 3) {
|
||||
rct_widgetindex buttonWidgetIndex = wheel < 0 ? previewWidgetIndex + 2 : previewWidgetIndex + 1;
|
||||
window_event_mouse_up_call(w, buttonWidgetIndex);
|
||||
window_event_mouse_down_call(w, buttonWidgetIndex);
|
||||
return true;
|
||||
}
|
||||
|
||||
|
|
Loading…
Reference in New Issue