diff options
| author | Juan Linietsky | 2017-01-20 19:24:49 -0300 |
|---|---|---|
| committer | GitHub | 2017-01-20 19:24:49 -0300 |
| commit | ee0f53df52d88ca57079579f3f3e943e7e40f53a (patch) | |
| tree | fcf670f1e8aec411c6deaf97e9fc77bf5c195f31 /scene/gui/spin_box.cpp | |
| parent | 72a02555850016ab792cf498c5370983d3b72832 (diff) | |
| parent | 6f4f9aa6ded6da027c84cc466c767334dc3d3362 (diff) | |
| download | godot-ee0f53df52d88ca57079579f3f3e943e7e40f53a.tar.gz godot-ee0f53df52d88ca57079579f3f3e943e7e40f53a.tar.zst godot-ee0f53df52d88ca57079579f3f3e943e7e40f53a.zip | |
Diffstat (limited to 'scene/gui/spin_box.cpp')
| -rw-r--r-- | scene/gui/spin_box.cpp | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/scene/gui/spin_box.cpp b/scene/gui/spin_box.cpp index ec6be0d19..8920f8f05 100644 --- a/scene/gui/spin_box.cpp +++ b/scene/gui/spin_box.cpp @@ -162,7 +162,7 @@ void SpinBox::_gui_input(const InputEvent& p_event) { if (drag.enabled) { float diff_y = drag.mouse_pos.y - cpos.y; - diff_y=Math::pow(ABS(diff_y),1.8)*SGN(diff_y); + diff_y=Math::pow(ABS(diff_y),1.8f)*SGN(diff_y); diff_y*=0.1; drag.mouse_pos=cpos; |
