diff options
author | Jason Knight <jason@winterpixel.com> | 2021-05-27 15:06:53 -0600 |
---|---|---|
committer | Jason Knight <jason@winterpixel.com> | 2021-05-27 15:06:53 -0600 |
commit | 4c6ad8abcda0999557d35e35811002de5ff1b18e (patch) | |
tree | 006e830f49997c7ecfd9890c4328bd786df5244a | |
parent | 364ea7f280a3f074795e542b16b1d0ec76cf6ce2 (diff) |
Emit button_up signal after setting pressed to false.
-rw-r--r-- | scene/gui/base_button.cpp | 3 |
1 files changed, 1 insertions, 2 deletions
diff --git a/scene/gui/base_button.cpp b/scene/gui/base_button.cpp index ac067aa001..703ae4374e 100644 --- a/scene/gui/base_button.cpp +++ b/scene/gui/base_button.cpp @@ -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(); |