1
0
Fork 0

Fix CurrentStep ParamSlider for non-booleans

The width was incorrect.
This commit is contained in:
Robbert van der Helm 2022-03-22 19:07:32 +01:00
parent e48a0d5eb8
commit ee3f4e0b37

View file

@ -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,
)
}
};