mirror of
https://github.com/AleziaKurdis/overte.git
synced 2025-04-08 06:32:35 +02:00
Fix QML spinbox not stepping for some values
This commit is contained in:
parent
3b5eb2d24b
commit
da2a3f67cf
1 changed files with 2 additions and 2 deletions
|
@ -97,11 +97,11 @@ SpinBox {
|
|||
}
|
||||
|
||||
textFromValue: function(value, locale) {
|
||||
return parseFloat(value / factor).toFixed(decimals);
|
||||
return (value / factor).toFixed(decimals);
|
||||
}
|
||||
|
||||
valueFromText: function(text, locale) {
|
||||
return Number.fromLocaleString(locale, text) * factor;
|
||||
return Math.round(Number.fromLocaleString(locale, text) * factor);
|
||||
}
|
||||
|
||||
|
||||
|
|
Loading…
Reference in a new issue