Merge pull request #64574 from Begah/fix_transient_window_wrap_mouse
This commit is contained in:
commit
ff612b6916
5 changed files with 18 additions and 3 deletions
|
|
@ -109,8 +109,9 @@ void SpinBox::_range_click_timeout() {
|
|||
void SpinBox::_release_mouse() {
|
||||
if (drag.enabled) {
|
||||
drag.enabled = false;
|
||||
Input::get_singleton()->set_mouse_mode(Input::MOUSE_MODE_VISIBLE);
|
||||
Input::get_singleton()->set_mouse_mode(Input::MOUSE_MODE_HIDDEN);
|
||||
warp_mouse(drag.capture_pos);
|
||||
Input::get_singleton()->set_mouse_mode(Input::MOUSE_MODE_VISIBLE);
|
||||
}
|
||||
}
|
||||
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue