aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authordaoge_cmd <3523206925@qq.com>2026-03-02 00:50:37 +0800
committerdaoge_cmd <3523206925@qq.com>2026-03-02 00:50:37 +0800
commitd5707899dbc99d5c9520095246fc0bf2425c6235 (patch)
treebdbe0f8adda2d0a317c69bdb479152ada6da335f
parent05ea5ca0434efca254763925e9309b6f8dec6e64 (diff)
feat: update scroll wheel behavior for page navigation
-rw-r--r--Minecraft.Client/Common/UI/UIScene_AbstractContainerMenu.cpp6
1 files changed, 3 insertions, 3 deletions
diff --git a/Minecraft.Client/Common/UI/UIScene_AbstractContainerMenu.cpp b/Minecraft.Client/Common/UI/UIScene_AbstractContainerMenu.cpp
index 942009d7..7823fb4e 100644
--- a/Minecraft.Client/Common/UI/UIScene_AbstractContainerMenu.cpp
+++ b/Minecraft.Client/Common/UI/UIScene_AbstractContainerMenu.cpp
@@ -247,15 +247,15 @@ void UIScene_AbstractContainerMenu::tick()
handleKeyDown(m_iPad, ACTION_MENU_Y, false);
}
- // Mouse scroll wheel for tab switching
+ // Mouse scroll wheel for page scrolling
int scrollDelta = KMInput.ConsumeScrollDelta();
if (scrollDelta > 0)
{
- handleKeyDown(m_iPad, ACTION_MENU_LEFT_SCROLL, false);
+ handleKeyDown(m_iPad, ACTION_MENU_OTHER_STICK_UP, false);
}
else if (scrollDelta < 0)
{
- handleKeyDown(m_iPad, ACTION_MENU_RIGHT_SCROLL, false);
+ handleKeyDown(m_iPad, ACTION_MENU_OTHER_STICK_DOWN, false);
}
// ESC to close — must be last since it may destroy this scene