1
0
mirror of https://github.com/OpenRCT2/OpenRCT2 synced 2025-12-24 00:03:11 +01:00

Move cut-away stepper logic to mousedown handler

This makes scrolling work for the stepper widget, and overrides behaviour for scrolling anywhere else in the window.
This commit is contained in:
Hielke Morsink
2018-06-04 13:41:27 +02:00
parent 15c908e4af
commit 32c4dab6c8
2 changed files with 31 additions and 16 deletions

View File

@@ -303,7 +303,7 @@ static bool window_other_wheel_input(rct_window* w, rct_widgetindex widgetIndex,
return false;
}
}
else
else if (widgetType == WWT_STEPPER)
{
buttonWidgetIndex = wheel < 0 ? widgetIndex + 1 : widgetIndex + 2;
@@ -314,6 +314,10 @@ static bool window_other_wheel_input(rct_window* w, rct_widgetindex widgetIndex,
return false;
}
}
else
{
return false;
}
if (widget_is_disabled(w, buttonWidgetIndex))
{