Y scrollbar added to scroll area

This commit is contained in:
Yousef Khadadeh 2026-04-01 10:18:38 +03:00
parent 732261b58c
commit fcdf1944f7
4 changed files with 321 additions and 275 deletions

View file

@ -32,8 +32,12 @@ class ScrollArea : public Element {
virtual bool input_mouse_wheel_callback(const InputManager::MouseWheelCallbackArgs& wheel, bool mouseHovering) override;
private:
Options opts;
bool isScrollbarXHeld = false;
bool isScrollbarYHeld = false;
bool isScrollbarHeldY = false;
bool isScrollbarHoveredY = false;
bool isHoveringOverScrollerY = false;
float scrollerStartPosY;
float mouseStartPosY;
Vector2f contentDimensions = {0.0f, 0.0f};
Vector2f containerDimensions = {0.0f, 0.0f};
Vector2f scrollOffset = {0.0f, 0.0f};