aboutsummaryrefslogtreecommitdiff
path: root/Minecraft.Client/Common/UI/IUIScene_CreativeMenu.cpp
diff options
context:
space:
mode:
Diffstat (limited to 'Minecraft.Client/Common/UI/IUIScene_CreativeMenu.cpp')
-rw-r--r--Minecraft.Client/Common/UI/IUIScene_CreativeMenu.cpp22
1 files changed, 20 insertions, 2 deletions
diff --git a/Minecraft.Client/Common/UI/IUIScene_CreativeMenu.cpp b/Minecraft.Client/Common/UI/IUIScene_CreativeMenu.cpp
index 544fedc0..04852e97 100644
--- a/Minecraft.Client/Common/UI/IUIScene_CreativeMenu.cpp
+++ b/Minecraft.Client/Common/UI/IUIScene_CreativeMenu.cpp
@@ -1098,7 +1098,15 @@ void IUIScene_CreativeMenu::handleAdditionalKeyPress(int iAction)
}
break;
case ACTION_MENU_OTHER_STICK_DOWN:
- ++m_tabPage[m_curTab];
+ {
+ int pageStep = TabSpec::rows;
+#ifdef _WINDOWS64
+ if (g_KBMInput.WasMouseWheelConsumed())
+ {
+ pageStep = 1;
+ }
+#endif
+ m_tabPage[m_curTab] += pageStep;
if(m_tabPage[m_curTab] >= specs[m_curTab]->getPageCount())
{
m_tabPage[m_curTab] = specs[m_curTab]->getPageCount() - 1;
@@ -1107,9 +1115,18 @@ void IUIScene_CreativeMenu::handleAdditionalKeyPress(int iAction)
{
switchTab(m_curTab);
}
+ }
break;
case ACTION_MENU_OTHER_STICK_UP:
- --m_tabPage[m_curTab];
+ {
+ int pageStep = TabSpec::rows;
+#ifdef _WINDOWS64
+ if (g_KBMInput.WasMouseWheelConsumed())
+ {
+ pageStep = 1;
+ }
+#endif
+ m_tabPage[m_curTab] -= pageStep;
if(m_tabPage[m_curTab] < 0)
{
m_tabPage[m_curTab] = 0;
@@ -1118,6 +1135,7 @@ void IUIScene_CreativeMenu::handleAdditionalKeyPress(int iAction)
{
switchTab(m_curTab);
}
+ }
break;
}
}