mirror of
https://github.com/obsqrbtz/egui_knob.git
synced 2026-04-08 20:19:17 +03:00
fix: Address PR feedback
Prevent division by zero when min equals max value Also improves angle calculations using TAU constant and adds NaN validation. Also fix doc
This commit is contained in:
@@ -122,7 +122,7 @@ impl eframe::App for KnobExample {
|
||||
);
|
||||
|
||||
ui.add(
|
||||
Knob::new(&mut self.blue_value, 0.0, 100.0, egui_knob::KnobStyle::Dot)
|
||||
Knob::new(&mut self.blue_value, 0.0, 100., egui_knob::KnobStyle::Dot)
|
||||
.with_label("Top", egui_knob::LabelPosition::Top)
|
||||
.with_colors(
|
||||
egui::Color32::from_rgb(30, 30, 80),
|
||||
|
||||
Reference in New Issue
Block a user