mirror of
				https://github.com/ocornut/imgui.git
				synced 2025-11-04 01:34:32 +00:00 
			
		
		
		
	DragFloat() fixed clamping #180
This commit is contained in:
		@@ -5531,7 +5531,7 @@ static bool DragScalarBehavior(const ImRect& frame_bb, ImGuiID id, float* v, flo
 | 
			
		||||
 | 
			
		||||
                // Clamp
 | 
			
		||||
                if (v_min < v_max)
 | 
			
		||||
                    g.DragCurrentValue = ImClamp(v_cur, v_min, v_max);
 | 
			
		||||
                    v_cur = ImClamp(v_cur, v_min, v_max);
 | 
			
		||||
                g.DragCurrentValue = v_cur;
 | 
			
		||||
 | 
			
		||||
                // Round to user desired precision, then apply
 | 
			
		||||
 
 | 
			
		||||
		Reference in New Issue
	
	Block a user