diff --git a/src/Slider.jsx b/src/Slider.jsx index 1edcf28..310bcd9 100644 --- a/src/Slider.jsx +++ b/src/Slider.jsx @@ -270,7 +270,7 @@ class Slider extends React.Component { const points = Object.keys(marks).map(parseFloat); if (step !== null) { - const closestStep = Math.round(val / step) * step; + const closestStep = (Math.round((val - min) / step) * step) + min; points.push(closestStep); }