mirror of
https://github.com/ocornut/imgui.git
synced 2024-12-14 16:53:00 +01:00
Nav: DragBehavior removed bogus test (#323)
This commit is contained in:
parent
d0801057ba
commit
36fa2b9523
@ -7627,9 +7627,9 @@ bool ImGui::DragBehavior(const ImRect& frame_bb, ImGuiID id, float* v, float v_s
|
|||||||
if (g.ActiveIdSource == ImGuiInputSource_Nav)
|
if (g.ActiveIdSource == ImGuiInputSource_Nav)
|
||||||
{
|
{
|
||||||
adjust_delta = NavGetTweakDelta().x;
|
adjust_delta = NavGetTweakDelta().x;
|
||||||
if (IsKeyDownMap(ImGuiKey_NavTweakFaster) && g.DragSpeedScaleFast >= 0.0f)
|
if (IsKeyDownMap(ImGuiKey_NavTweakFaster))
|
||||||
adjust_delta *= 10.0f;
|
adjust_delta *= 10.0f;
|
||||||
if (IsKeyDownMap(ImGuiKey_NavTweakSlower) && g.DragSpeedScaleSlow >= 0.0f)
|
if (IsKeyDownMap(ImGuiKey_NavTweakSlower))
|
||||||
adjust_delta /= 10.0f;
|
adjust_delta /= 10.0f;
|
||||||
}
|
}
|
||||||
adjust_delta *= v_speed;
|
adjust_delta *= v_speed;
|
||||||
|
Loading…
Reference in New Issue
Block a user