Merge pull request #34938 from OverloadedOrama/fix-basebutton-button-press
Fixes BaseButton not triggering the pressed signal on "Button Press"…
This commit is contained in:
commit
59a2fed1e6
1 changed files with 1 additions and 1 deletions
|
@ -165,7 +165,7 @@ void BaseButton::on_action_event(Ref<InputEvent> p_event) {
|
|||
_pressed();
|
||||
}
|
||||
} else {
|
||||
if (!p_event->is_pressed()) {
|
||||
if ((p_event->is_pressed() && action_mode == ACTION_MODE_BUTTON_PRESS) || (!p_event->is_pressed() && action_mode == ACTION_MODE_BUTTON_RELEASE)) {
|
||||
_pressed();
|
||||
}
|
||||
}
|
||||
|
|
Loading…
Reference in a new issue