Emit button_up signal after setting pressed to false.

(cherry picked from commit 4c6ad8abcd)
This commit is contained in:
Jason Knight 2021-05-27 15:06:53 -06:00 committed by Rémi Verschelde
parent 4f87bd2bc4
commit 7510e1c24b
No known key found for this signature in database
GPG Key ID: C3336907360768E1

View File

@ -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();