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