mirror of
https://github.com/godotengine/godot.git
synced 2024-11-27 09:16:35 +08:00
Fixes BaseButton not triggering the "pressed" signal on "Button Press" Action Mode
This should fix #34935
This commit is contained in:
parent
b9a553f99d
commit
bf4a0242ff
@ -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 New Issue
Block a user