Make mousescroll work effectively for fast sliders

This commit is contained in:
Matthew Coppola committed 2025-02-23 22:49:51 -05:00
1 parent fbd9ef002e
commit a9752198c3
1 file changed
+6 -1
+6 -1
View File
@@ -2610,7 +2610,12 @@ bool menuitemSliderTick(struct menuitem *item, struct menudialog *dialog, struct
#ifndef PLATFORM_N64
if (g_MenuUsingMouse && inputs->mousescroll) {
index += -inputs->mousescroll;
if ((item->flags & MENUITEMFLAG_SLIDER_FAST) == 0) {
index += -inputs->mousescroll;
} else {
s32 mult = item->param3 / 40;
index += -inputs->mousescroll * (mult ? mult : 1);
}
}
#endif