diff --git a/imgui.cpp b/imgui.cpp index 2719f8293..e4d6789be 100644 --- a/imgui.cpp +++ b/imgui.cpp @@ -6526,7 +6526,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) + if (*v != new_value && (v_min != v_max)) { *v = new_value; value_changed = true;