mirror of
https://github.com/overte-org/overte.git
synced 2025-08-09 13:09:52 +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) {
|
textFromValue: function(value, locale) {
|
||||||
return parseFloat(value / factor).toFixed(decimals);
|
return (value / factor).toFixed(decimals);
|
||||||
}
|
}
|
||||||
|
|
||||||
valueFromText: function(text, locale) {
|
valueFromText: function(text, locale) {
|
||||||
return Number.fromLocaleString(locale, text) * factor;
|
return Math.round(Number.fromLocaleString(locale, text) * factor);
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
||||||
|
|
Loading…
Reference in a new issue