Merge pull request #49155 from winterpixelgames/button-pressed-during-button-up-signal

Emit button_up signal after setting pressed to false.
This commit is contained in:
Rémi Verschelde 2021-06-09 13:46:39 +02:00 committed by GitHub
commit fbe53a7064
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

View File

@ -172,10 +172,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();