Fixed more issues in file picker
This commit is contained in:
parent
10217e97f4
commit
f90cf5b026
8 changed files with 19 additions and 6 deletions
|
|
@ -4,6 +4,7 @@
|
|||
#include <include/core/SkColorSpace.h>
|
||||
#include <iostream>
|
||||
#include "../GUIManager.hpp"
|
||||
#include "Helpers/MathExtras.hpp"
|
||||
|
||||
namespace GUIStuff {
|
||||
|
||||
|
|
|
|||
|
|
@ -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);
|
||||
}
|
||||
|
|
|
|||
|
|
@ -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;
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue