Skip to content

Commit

Permalink
SliderInt, SliderFloat() interacting enforce modifying to the value t…
Browse files Browse the repository at this point in the history
…o be consistent with other widget behaviors (ocornut#919)
  • Loading branch information
ocornut committed Nov 28, 2016
1 parent 94c77ed commit 449c47c
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion imgui.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -6551,7 +6551,7 @@ bool ImGui::SliderBehavior(const ImRect& frame_bb, ImGuiID id, float* v, float v

// Round past decimal precision
new_value = RoundScalar(new_value, decimal_precision);
if (*v != new_value && (v_min != v_max))
if (*v != new_value)
{
*v = new_value;
value_changed = true;
Expand Down

0 comments on commit 449c47c

Please sign in to comment.