1
0
mirror of https://github.com/ocornut/imgui.git synced 2024-09-24 19:48:34 +02:00

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

This commit is contained in:
ocornut 2016-11-28 11:05:24 +01:00
parent 94c77edfa5
commit 449c47c789

View File

@ -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;