Emit button_up signal after setting pressed to false.
(cherry picked from commit 4c6ad8abcd
)
This commit is contained in:
parent
4f87bd2bc4
commit
7510e1c24b
@ -175,10 +175,9 @@ void BaseButton::on_action_event(Ref<InputEvent> p_event) {
|
||||
status.hovering = false;
|
||||
}
|
||||
}
|
||||
// pressed state should be correct with button_up signal
|
||||
emit_signal("button_up");
|
||||
status.press_attempt = false;
|
||||
status.pressing_inside = false;
|
||||
emit_signal("button_up");
|
||||
}
|
||||
|
||||
update();
|
||||
|
Loading…
Reference in New Issue
Block a user