1
0
mirror of https://github.com/Pomax/BezierInfo-2.git synced 2025-08-16 21:54:06 +02:00

fix localization

This commit is contained in:
Pomax
2018-06-24 20:06:05 -07:00
parent e8a51b2828
commit c62acc1e1c
6 changed files with 14 additions and 15 deletions

View File

@@ -7,6 +7,7 @@ class SliderSet extends React.Component {
}
render(props) {
props = props || {};
var min = props.min || 0;
var max = props.max || 1;
var step = props.step || (max-min) / 100;
@@ -17,11 +18,11 @@ class SliderSet extends React.Component {
<label>t<sub>{ i }</sub></label>
<input
type="range"
key={`row${i}`}
min={min}
max={max}
defaultValue={v}
step={step}
key={`row${i}`}
min={min}
max={max}
defaultValue={v}
step={step}
onChange={e => {
this.options[i] = e.target.value;
props.onChange(i, this.options);