Finer grain for tolerance

This commit is contained in:
Alfred Melch 2019-07-22 08:37:00 +02:00
parent db04f293a9
commit c0f7beb8cb
2 changed files with 2 additions and 2 deletions

View File

@ -27,6 +27,6 @@ export class Checkbox extends Field {
export class ToleranceRange extends Range {
constructor(name = 'Tolerance', id = 'tol') {
super(name, id, 0.01, 1, 0.01, 0.2)
super(name, id, 0.001, 1, 0.001, 0.2)
}
}

View File

@ -20,7 +20,7 @@ export class RangeInput extends React.Component {
for (min; min <= max; min += step) {
arr.push(min)
}
return arr.map(val => Math.round(val * 1000) / 1000)
return arr.map(val => Math.round(val * 10000) / 10000)
}
get length() {