diff options
author | Johannes Witt <johawitt@outlook.de> | 2022-06-07 20:05:52 +0200 |
---|---|---|
committer | Johannes Witt <johawitt@outlook.de> | 2022-06-07 20:08:15 +0200 |
commit | 784b1adb188f6003f01201d8cff3dab574c6beab (patch) | |
tree | 50d54ec7c8bcd08f2ce102e372f22a0174261549 /editor | |
parent | 12edb2ce5813d6cf07a8a0837d42e8742489d229 (diff) |
Fix `EditorSpinSlider` mouse reset position on tree exit
Diffstat (limited to 'editor')
-rw-r--r-- | editor/editor_spin_slider.cpp | 1 |
1 files changed, 1 insertions, 0 deletions
diff --git a/editor/editor_spin_slider.cpp b/editor/editor_spin_slider.cpp index 09e407de57..83944cc553 100644 --- a/editor/editor_spin_slider.cpp +++ b/editor/editor_spin_slider.cpp @@ -448,6 +448,7 @@ void EditorSpinSlider::_notification(int p_what) { if (grabbing_spinner) { grabber->hide(); Input::get_singleton()->set_mouse_mode(Input::MOUSE_MODE_VISIBLE); + Input::get_singleton()->warp_mouse(grabbing_spinner_mouse_pos); grabbing_spinner = false; grabbing_spinner_attempt = false; } |