Skip to content

Commit

Permalink
Rename DragValue::clamp_range -> DragValue::range
Browse files Browse the repository at this point in the history
Addresses egui #4728 (emilk/egui#4728)
  • Loading branch information
zhaop committed Jul 6, 2024
1 parent 2ede2b2 commit 00673ec
Showing 1 changed file with 1 addition and 1 deletion.
Original file line number Diff line number Diff line change
Expand Up @@ -118,7 +118,7 @@ fn debug_ui_options(
if ui
.add(
egui::DragValue::new(&mut speed)
.clamp_range(0..=20)
.range(0..=20)
.speed(0.1),
)
.changed()
Expand Down

0 comments on commit 00673ec

Please sign in to comment.