mirror of
https://github.com/robbert-vdh/nih-plug.git
synced 2026-07-01 02:36:54 +00:00
Fix CurrentStep ParamSlider for non-booleans
The width was incorrect.
This commit is contained in:
@@ -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,
|
||||
)
|
||||
}
|
||||
};
|
||||
|
||||
Reference in New Issue
Block a user