summaryrefslogtreecommitdiffstats
path: root/scene/gui/spin_box.cpp
diff options
context:
space:
mode:
Diffstat (limited to 'scene/gui/spin_box.cpp')
-rw-r--r--scene/gui/spin_box.cpp3
1 files changed, 3 insertions, 0 deletions
diff --git a/scene/gui/spin_box.cpp b/scene/gui/spin_box.cpp
index e13fd21949..26dbe1cb0c 100644
--- a/scene/gui/spin_box.cpp
+++ b/scene/gui/spin_box.cpp
@@ -263,6 +263,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;