From 09cba02d3f0a1e84ed682dae27bfba48b3ecb6e4 Mon Sep 17 00:00:00 2001 From: ocornut Date: Sun, 7 Aug 2016 20:31:51 +0200 Subject: [PATCH] Nav: DragBehavior: Fix for fast speed (#323 #180) --- imgui.cpp | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/imgui.cpp b/imgui.cpp index 75c45e37..69c07e20 100644 --- a/imgui.cpp +++ b/imgui.cpp @@ -7676,7 +7676,7 @@ bool ImGui::DragBehavior(const ImRect& frame_bb, ImGuiID id, float* v, float v_s } if (g.ActiveIdSource == ImGuiInputSource_Nav) { - adjust_delta = GetNavInputAmount2d(0, ImGuiNavReadMode_RepeatFast, 1.0f/10.0f, 1.0f).x; + adjust_delta = GetNavInputAmount2d(0, ImGuiNavReadMode_RepeatFast, 1.0f/10.0f, 10.0f).x; } adjust_delta *= v_speed; g.DragLastMouseDelta.x = mouse_drag_delta.x;