mirror of
https://github.com/obsqrbtz/egui_knob.git
synced 2026-04-09 12:37:52 +03:00
added support for using scroll wheel to modify knob value
This commit is contained in:
@@ -17,6 +17,7 @@ pub struct KnobConfig {
|
||||
pub(crate) min_angle: f32,
|
||||
pub(crate) max_angle: f32,
|
||||
pub(crate) reset_value: Option<f32>,
|
||||
pub(crate) allow_scroll: bool,
|
||||
}
|
||||
|
||||
impl KnobConfig {
|
||||
@@ -38,6 +39,7 @@ impl KnobConfig {
|
||||
show_background_arc: true,
|
||||
show_filled_segments: true,
|
||||
reset_value: None,
|
||||
allow_scroll:false
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user