Fix CurrentStep ParamSlider for non-booleans
The width was incorrect.
This commit is contained in:
parent
e48a0d5eb8
commit
ee3f4e0b37
|
@ -216,7 +216,9 @@ impl ParamSlider {
|
||||||
};
|
};
|
||||||
(
|
(
|
||||||
(previous_step + current_value) / 2.0,
|
(previous_step + current_value) / 2.0,
|
||||||
(next_step + current_value) / 2.0,
|
((next_step - current_value)
|
||||||
|
+ (current_value - previous_step))
|
||||||
|
/ 2.0,
|
||||||
)
|
)
|
||||||
}
|
}
|
||||||
};
|
};
|
||||||
|
|
Loading…
Reference in a new issue