Fix #6047: Scrolling in spin boxes does not work any more

Regression from #5775.
This commit is contained in:
Ted John 2017-07-29 16:43:19 +01:00
parent e839a46c67
commit 2ec0df1f3d
1 changed files with 1 additions and 1 deletions

View File

@ -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;
}