Fix default number nudge funcion (#328)
Fix default number nudge function
This commit is contained in:
parent
43714fdf17
commit
455ac7736d
1 changed files with 1 additions and 1 deletions
|
@ -651,7 +651,7 @@ const defaultNumberNudgeFn: NumberNudgeFn = ({
|
||||||
magnitude,
|
magnitude,
|
||||||
}) => {
|
}) => {
|
||||||
const {range} = config
|
const {range} = config
|
||||||
if (range) {
|
if (range && !range.includes(Infinity) && !range.includes(-Infinity)) {
|
||||||
return (
|
return (
|
||||||
deltaFraction * (range[1] - range[0]) * magnitude * config.nudgeMultiplier
|
deltaFraction * (range[1] - range[0]) * magnitude * config.nudgeMultiplier
|
||||||
)
|
)
|
||||||
|
|
Loading…
Reference in a new issue