Fixed more issues in file picker

This commit is contained in:
Yousef Khadadeh 2026-04-01 22:28:48 +03:00
parent 10217e97f4
commit f90cf5b026
8 changed files with 19 additions and 6 deletions

View file

@ -4,6 +4,7 @@
#include <include/core/SkColorSpace.h>
#include <iostream>
#include "../GUIManager.hpp"
#include "Helpers/MathExtras.hpp"
namespace GUIStuff {

View file

@ -138,6 +138,10 @@ void ScrollArea::layout(const Clay_ElementId& id, const Options& options) {
}
}
void ScrollArea::reset_scroll() {
scrollOffset = {0.0f, 0.0f};
}
bool ScrollArea::input_mouse_button_callback(const InputManager::MouseButtonCallbackArgs& button, bool mouseHovering) {
return Element::input_mouse_button_callback(button, mouseHovering);
}

View file

@ -26,6 +26,7 @@ class ScrollArea : public Element {
};
void layout(const Clay_ElementId& id, const Options& options);
void reset_scroll();
virtual bool input_mouse_button_callback(const InputManager::MouseButtonCallbackArgs& button, bool mouseHovering) override;
virtual bool input_mouse_motion_callback(const InputManager::MouseMotionCallbackArgs& motion, bool mouseHovering) override;