Merge pull request #3300 from MarianoGnu/bug_fixing

fix: TouchScreenButton should stop propagating action when button is …
This commit is contained in:
Rémi Verschelde 2016-01-11 08:47:37 +01:00
commit 90e5fba1c1
1 changed files with 4 additions and 0 deletions

View File

@ -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;
}
}