added support for using scroll wheel to modify knob value

This commit is contained in:
Maor Malka
2026-01-13 05:57:30 -05:00
parent 4e8975c955
commit 2c5b209571
3 changed files with 22 additions and 1 deletions

View File

@@ -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
}
}
}