fix: Add explicit step to slider to prevent UI locking at bounds
This commit is contained in:
+1
-1
@@ -394,7 +394,7 @@ fn view(state: &AppState) -> Element<'_, AppMessage> {
|
|||||||
vertical_space(20.0),
|
vertical_space(20.0),
|
||||||
column![
|
column![
|
||||||
text(format!("Mic Sensitivity (Noise Gate): {:.1}%", state.config.noise_gate_threshold * 100.0)).size(14).color(color_subtext),
|
text(format!("Mic Sensitivity (Noise Gate): {:.1}%", state.config.noise_gate_threshold * 100.0)).size(14).color(color_subtext),
|
||||||
slider(0.0..=0.1, state.config.noise_gate_threshold, AppMessage::NoiseGateChanged)
|
slider(0.0..=0.1, state.config.noise_gate_threshold, AppMessage::NoiseGateChanged).step(0.001)
|
||||||
].spacing(10).width(iced::Length::Fixed(320.0)),
|
].spacing(10).width(iced::Length::Fixed(320.0)),
|
||||||
vertical_space(30.0),
|
vertical_space(30.0),
|
||||||
button(
|
button(
|
||||||
|
|||||||
Reference in New Issue
Block a user