Merge pull request #77804 from ajreckof/prevent-disapearance-of-mouse-when-SpinBox-is-hidden-while-doing-a-drag-modification

Prevent disappearance of mouse when SpinBox is hidden while dragging
This commit is contained in:
Rémi Verschelde 2023-09-29 19:45:03 +02:00
commit 7469b43392
No known key found for this signature in database
GPG key ID: C3336907360768E1

View file

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