Fixed more issues with grid and scroll area

This commit is contained in:
Yousef Khadadeh 2026-04-19 13:37:16 +03:00
parent 0853df4d2a
commit 4e1ab6fc50
6 changed files with 9 additions and 29 deletions

View file

@ -72,10 +72,8 @@ void SelectableButton::input_mouse_button_callback(const InputManager::MouseButt
bool oldIsHeld = isHeld;
isHeld = mouseHovering && button.button == InputManager::MouseButton::LEFT && button.down;
if(isHeld) {
if(instantResponse) {
std::cout << "INSTANT" << std::endl;
if(instantResponse)
gui.set_post_callback_func(onClick);
}
gui.set_to_layout();
}
else if(mouseHovering && oldIsHeld && button.button == InputManager::MouseButton::LEFT && !button.down) {