SliderInt, SliderFloat() interacting enforce modifying to the value to be consistent with other widget behaviors (#919)

features/sdl_renderer3_multiviewports
ocornut ago%!(EXTRA string=9 years)
parent 94c77edfa5
commit 449c47c789
  1. 2
      imgui.cpp

@ -6551,7 +6551,7 @@ bool ImGui::SliderBehavior(const ImRect& frame_bb, ImGuiID id, float* v, float v
// Round past decimal precision // Round past decimal precision
new_value = RoundScalar(new_value, decimal_precision); new_value = RoundScalar(new_value, decimal_precision);
if (*v != new_value && (v_min != v_max)) if (*v != new_value)
{ {
*v = new_value; *v = new_value;
value_changed = true; value_changed = true;

Loading…
Cancel
Save