Skip to content

Commit

Permalink
Merge pull request #95 from jakobkieri/master
Browse files Browse the repository at this point in the history
Fixed problem with setting "Step:" to high values
  • Loading branch information
onsdagens authored Nov 13, 2024
2 parents 7a90cdf + b0b4c4c commit 8b197bd
Showing 1 changed file with 5 additions and 1 deletion.
6 changes: 5 additions & 1 deletion src/gui_egui/menu.rs
Original file line number Diff line number Diff line change
Expand Up @@ -37,7 +37,11 @@ impl Menu {
}
ui.separator();

ui.add(DragValue::new(&mut gui.step_amount).prefix("Step: "));
ui.add(
DragValue::new(&mut gui.step_amount)
.prefix("Step: ")
.range(0..=u32::MAX),
);
if ui.button("⟳").clicked() {
// TODO dont have simulator here add keymap
if let Some(s) = gui.simulator.as_mut() {
Expand Down

0 comments on commit 8b197bd

Please sign in to comment.