Fix dragging range-style integer number inputs not accumulating slow mouse movements (#3682)
fixed to register non integer drag also
This commit is contained in:
parent
1b1400b989
commit
f2dfd42754
|
|
@ -469,7 +469,7 @@
|
||||||
cumulativeDragDelta += dragDelta;
|
cumulativeDragDelta += dragDelta;
|
||||||
|
|
||||||
const combined = initialValue + cumulativeDragDelta;
|
const combined = initialValue + cumulativeDragDelta;
|
||||||
const combineSnapped = snapping ? Math.round(combined) : combined;
|
const combineSnapped = snapping || isInteger ? Math.round(combined) : combined;
|
||||||
|
|
||||||
const newValue = updateValue(combineSnapped);
|
const newValue = updateValue(combineSnapped);
|
||||||
|
|
||||||
|
|
|
||||||
Loading…
Reference in New Issue