diff --git a/nih_plug_vizia/src/widgets/param_slider.rs b/nih_plug_vizia/src/widgets/param_slider.rs index 7c1afcbd..21045252 100644 --- a/nih_plug_vizia/src/widgets/param_slider.rs +++ b/nih_plug_vizia/src/widgets/param_slider.rs @@ -216,7 +216,9 @@ impl ParamSlider { }; ( (previous_step + current_value) / 2.0, - (next_step + current_value) / 2.0, + ((next_step - current_value) + + (current_value - previous_step)) + / 2.0, ) } };