This commit is contained in:
Ray
2023-05-08 18:43:22 +02:00
parent 251f7fde3a
commit 1c7ceb6fda

View File

@ -1660,8 +1660,8 @@ Rectangle GuiScrollPanel(Rectangle bounds, const char *text, Rectangle content,
#endif
float wheelMove = GetMouseWheelMove();
// Horizontal scroll ((Left Control or Right Shift) + Mouse wheel)
if (hasHorizontalScrollBar && (IsKeyDown(KEY_LEFT_CONTROL) || IsKeyDown(KEY_RIGHT_SHIFT))) scrollPos.x += wheelMove*20;
// Horizontal scroll ((Left Control or Left Shift) + Mouse wheel)
if (hasHorizontalScrollBar && (IsKeyDown(KEY_LEFT_CONTROL) || IsKeyDown(KEY_LEFT_SHIFT))) scrollPos.x += wheelMove*20;
else scrollPos.y += wheelMove*20; // Vertical scroll
}
}