Prevent disapearance of mouse when SpinBox is hidden while doing a drag modification.
This commit is contained in:
parent
db5113de36
commit
0c4d37e682
1 changed files with 3 additions and 0 deletions
|
|
@ -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;
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue