mirror of
https://github.com/raysan5/raygui.git
synced 2026-01-22 07:09:19 -05:00
Fixed #277
This commit is contained in:
@ -1660,8 +1660,8 @@ Rectangle GuiScrollPanel(Rectangle bounds, const char *text, Rectangle content,
|
|||||||
#endif
|
#endif
|
||||||
float wheelMove = GetMouseWheelMove();
|
float wheelMove = GetMouseWheelMove();
|
||||||
|
|
||||||
// Horizontal scroll ((Left Control or Right Shift) + Mouse wheel)
|
// Horizontal scroll ((Left Control or Left Shift) + Mouse wheel)
|
||||||
if (hasHorizontalScrollBar && (IsKeyDown(KEY_LEFT_CONTROL) || IsKeyDown(KEY_RIGHT_SHIFT))) scrollPos.x += wheelMove*20;
|
if (hasHorizontalScrollBar && (IsKeyDown(KEY_LEFT_CONTROL) || IsKeyDown(KEY_LEFT_SHIFT))) scrollPos.x += wheelMove*20;
|
||||||
else scrollPos.y += wheelMove*20; // Vertical scroll
|
else scrollPos.y += wheelMove*20; // Vertical scroll
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|||||||
Reference in New Issue
Block a user