diff --git a/crates/egui/src/style.rs b/crates/egui/src/style.rs index 6193fb3d6b8..38dea104bb5 100644 --- a/crates/egui/src/style.rs +++ b/crates/egui/src/style.rs @@ -648,7 +648,7 @@ impl ScrollStyle { ui.label("Minimum handle length"); }); ui.horizontal(|ui| { - ui.add(DragValue::new(bar_inner_margin).clamp_range(0.0..=32.0)); + ui.add(DragValue::new(bar_inner_margin).range(0.0..=32.0)); ui.label("Inner margin"); }); ui.horizontal(|ui| {