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:
Vatsal Kumar 2026-02-14 12:32:43 +05:30 committed by GitHub
parent 1b1400b989
commit f2dfd42754
No known key found for this signature in database
GPG Key ID: B5690EEEBB952194
1 changed files with 1 additions and 1 deletions

View File

@ -469,7 +469,7 @@
cumulativeDragDelta += dragDelta;
const combined = initialValue + cumulativeDragDelta;
const combineSnapped = snapping ? Math.round(combined) : combined;
const combineSnapped = snapping || isInteger ? Math.round(combined) : combined;
const newValue = updateValue(combineSnapped);