mirror of
https://github.com/godotengine/godot.git
synced 2025-01-24 19:51:12 -05:00
fix: TouchScreenButton should stop propagating action when button is removed from scene
This commit is contained in:
parent
3a3ce982b0
commit
3169b66d15
1 changed files with 4 additions and 0 deletions
|
@ -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…
Add table
Reference in a new issue