fix: popups only consume click when open
This commit is contained in:
parent
e1735f8a39
commit
fc2445010f
1 changed files with 3 additions and 0 deletions
|
|
@ -35,6 +35,9 @@ void FilePopup::process(double delta) {
|
|||
}
|
||||
|
||||
void FilePopup::unhandled_input(Ref<InputEvent> const &what) {
|
||||
if (!this->desire_open) {
|
||||
return;
|
||||
}
|
||||
Ref<InputEventMouseButton> button{ what };
|
||||
if (button.is_valid() && button->is_pressed()) {
|
||||
this->desire_open = false;
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue