Merge pull request #549 from ZenithMDC/fix-dialog-mousescroll

Forbid mousescroll if dialog is dimmed
This commit is contained in:
fgsfds authored and GitHub committed 2024-12-05 09:40:32 +01:00
commit 05e462b680
1 file changed
+1 -1
+1 -1
View File
@@ -4539,7 +4539,7 @@ void dialogTick(struct menudialog *dialog, struct menuinputs *inputs, u32 tickfl
if ((dialog->focuseditem->flags & MENUITEMFLAG_00010000) == 0) {
#ifndef PLATFORM_N64
if (g_MenuUsingMouse) {
if (g_MenuUsingMouse && !dialog->dimmed) {
dstscroll = dialog->dstscroll - inputs->mousescroll * LINEHEIGHT;
} else
#endif