Fixed more issues with grid and scroll area
This commit is contained in:
parent
0853df4d2a
commit
4e1ab6fc50
6 changed files with 9 additions and 29 deletions
|
|
@ -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) {
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue