Skip to content

Commit

Permalink
[#459] Feature: step도 스케일 함수 적용
Browse files Browse the repository at this point in the history
  • Loading branch information
giwan-dev committed Feb 7, 2020
1 parent c5ce689 commit 4f4b905
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions packages/slider/src/index.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -51,7 +51,7 @@ const [nonLinearScale, nonLinearScaleInverse]: ScaleFunction[] = [
]

export default function Slider({
step = 0.01,
step = 1,
initialValues,
min,
max,
Expand Down Expand Up @@ -82,7 +82,7 @@ export default function Slider({
<OriginalSlider
values={values.map(scaleFn)}
mode={2}
step={step}
step={scaleFn(step)}
domain={[min, max].map(scaleFn)}
rootStyle={{ position: 'relative' }}
onUpdate={(newValues) => setValues(newValues.map(scaleFnInverse))}
Expand Down

0 comments on commit 4f4b905

Please sign in to comment.