mirror of
https://github.com/wayvr-org/wayvr.git
synced 2026-10-28 14:02:26 +01:00
dont apply round multiplier to percentage values
This commit is contained in:
1 parent
30fd56402a
commit
a20ca4cc2b
1 file changed
+1
-1
@@ -16,7 +16,7 @@ use crate::{
|
||||
pub fn parse_round(value: &str, round: &mut WLength, multiplier: f32) {
|
||||
if is_percent(value) {
|
||||
if let Some(val) = parse_percent(value) {
|
||||
*round = WLength::Percent((val * multiplier).clamp(0., 1.));
|
||||
*round = WLength::Percent(val);
|
||||
} else {
|
||||
print_invalid_value(value);
|
||||
}
|
||||
|
||||
Reference in new issue
Block a user