diff --git a/crates/egui/src/memory.rs b/crates/egui/src/memory.rs index e116b6aa319..a603ac5e74f 100644 --- a/crates/egui/src/memory.rs +++ b/crates/egui/src/memory.rs @@ -346,7 +346,7 @@ impl Options { ui.horizontal(|ui| { ui.label("Line scroll speed"); ui.add( - crate::DragValue::new(line_scroll_speed).clamp_range(0.0..=f32::INFINITY), + crate::DragValue::new(line_scroll_speed).range(0.0..=f32::INFINITY), ) .on_hover_text("How many lines to scroll with each tick of the mouse wheel"); }); @@ -354,7 +354,7 @@ impl Options { ui.label("Scroll zoom speed"); ui.add( crate::DragValue::new(scroll_zoom_speed) - .clamp_range(0.0..=f32::INFINITY) + .range(0.0..=f32::INFINITY) .speed(0.001), ) .on_hover_text("How fast to zoom with ctrl/cmd + scroll");