diff options
author | RĂ©mi Verschelde <rverschelde@gmail.com> | 2019-11-06 22:34:27 +0100 |
---|---|---|
committer | GitHub <noreply@github.com> | 2019-11-06 22:34:27 +0100 |
commit | 706552404cd000fc011181a77189662ed9b6c97e (patch) | |
tree | 4d65a1462b4db5636b6a7a6e7d27ab6f0c687842 | |
parent | 99beb9afe618d648ad2283dd8cc60adb49d36492 (diff) | |
parent | 9fd416abce9d3c4a86fcf27b57779fc9507f7570 (diff) |
Merge pull request #33362 from qarmin/regression_control
Fix dragging spinner without control key
-rw-r--r-- | editor/editor_spin_slider.cpp | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/editor/editor_spin_slider.cpp b/editor/editor_spin_slider.cpp index d80176f00d..fbc4a5ee5c 100644 --- a/editor/editor_spin_slider.cpp +++ b/editor/editor_spin_slider.cpp @@ -112,7 +112,7 @@ void EditorSpinSlider::_gui_input(const Ref<InputEvent> &p_event) { if (mm->get_control()) { set_value(Math::round(pre_grab_value + get_step() * grabbing_spinner_dist_cache * 10)); } else { - set_value(pre_grab_value + get_step() * grabbing_spinner_dist_cache * 10); + set_value(pre_grab_value + get_step() * grabbing_spinner_dist_cache); } } } else if (updown_offset != -1) { |