diff options
| author | daoge_cmd <3523206925@qq.com> | 2026-03-02 00:50:37 +0800 |
|---|---|---|
| committer | daoge_cmd <3523206925@qq.com> | 2026-03-02 00:50:37 +0800 |
| commit | d5707899dbc99d5c9520095246fc0bf2425c6235 (patch) | |
| tree | bdbe0f8adda2d0a317c69bdb479152ada6da335f /Minecraft.Client | |
| parent | 05ea5ca0434efca254763925e9309b6f8dec6e64 (diff) | |
feat: update scroll wheel behavior for page navigation
Diffstat (limited to 'Minecraft.Client')
| -rw-r--r-- | Minecraft.Client/Common/UI/UIScene_AbstractContainerMenu.cpp | 6 |
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 |
