summaryrefslogtreecommitdiff
path: root/editor/editor_spin_slider.cpp
diff options
context:
space:
mode:
authorRĂ©mi Verschelde <remi@verschelde.fr>2021-05-23 17:24:24 +0200
committerGitHub <noreply@github.com>2021-05-23 17:24:24 +0200
commitad72f3c04e4af891a4c6226e84443b2e2a008a74 (patch)
tree0bb83de5334207a0e196100ac76eee1392c08ecf /editor/editor_spin_slider.cpp
parent587377e55360699c30633d54cb6ce330a365da39 (diff)
parent2c745e0e9587031f93c572dd5ad66fa577e10a1f (diff)
Merge pull request #48980 from amoriqbal/patch-1
Mouse pointer reappears at same spot
Diffstat (limited to 'editor/editor_spin_slider.cpp')
-rw-r--r--editor/editor_spin_slider.cpp1
1 files changed, 1 insertions, 0 deletions
diff --git a/editor/editor_spin_slider.cpp b/editor/editor_spin_slider.cpp
index 942a2d35ab..657dcfa760 100644
--- a/editor/editor_spin_slider.cpp
+++ b/editor/editor_spin_slider.cpp
@@ -70,6 +70,7 @@ void EditorSpinSlider::_gui_input(const Ref<InputEvent> &p_event) {
grabbing_spinner_dist_cache = 0;
pre_grab_value = get_value();
grabbing_spinner = false;
+ grabbing_spinner_mouse_pos = get_global_mouse_position();
}
} else {
if (grabbing_spinner_attempt) {