Skip to content

Commit

Permalink
Merge pull request #77804 from ajreckof/prevent-disapearance-of-mouse…
Browse files Browse the repository at this point in the history
…-when-SpinBox-is-hidden-while-doing-a-drag-modification

Prevent disappearance of mouse when SpinBox is hidden while dragging
  • Loading branch information
akien-mga committed Sep 29, 2023
2 parents 0923b87 + 0c4d37e commit 7469b43
Showing 1 changed file with 3 additions and 0 deletions.
3 changes: 3 additions & 0 deletions scene/gui/spin_box.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -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;
Expand Down

0 comments on commit 7469b43

Please sign in to comment.