1
0
mirror of https://github.com/godotengine/godot.git synced 2026-01-05 19:31:35 +00:00

Prevent disapearance of mouse when SpinBox is hidden while doing a drag modification.

This commit is contained in:
ajreckof
2023-06-03 14:50:03 +02:00
parent db5113de36
commit 0c4d37e682

View File

@@ -249,6 +249,9 @@ void SpinBox::_notification(int p_what) {
_update_text();
} break;
case NOTIFICATION_VISIBILITY_CHANGED:
drag.allowed = false;
[[fallthrough]];
case NOTIFICATION_EXIT_TREE: {
_release_mouse();
} break;