diff options
author | Rafał Mikrut <mikrutrafal54@gmail.com> | 2019-11-05 15:53:19 +0100 |
---|---|---|
committer | Rafał Mikrut <mikrutrafal54@gmail.com> | 2019-11-05 15:53:19 +0100 |
commit | 9fd416abce9d3c4a86fcf27b57779fc9507f7570 (patch) | |
tree | 3fcc719a95be02afc0275278729d24d736bba8e6 | |
parent | 4569f5ec82964e0abe543337c9537e0af9164c11 (diff) |
Fix dragging spinner without control
-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) { |