mirror of
https://github.com/godotengine/godot.git
synced 2025-03-13 23:41:08 +08:00
Merge pull request #3300 from MarianoGnu/bug_fixing
fix: TouchScreenButton should stop propagating action when button is …
This commit is contained in:
commit
90e5fba1c1
@ -102,6 +102,10 @@ void TouchScreenButton::_notification(int p_what) {
|
||||
action_id=-1;
|
||||
}
|
||||
} break;
|
||||
case NOTIFICATION_EXIT_TREE: {
|
||||
if (is_pressed())
|
||||
Input::get_singleton()->action_release(action);
|
||||
} break;
|
||||
}
|
||||
}
|
||||
|
||||
|
Loading…
x
Reference in New Issue
Block a user