mirror of
https://github.com/GraphiteEditor/Graphite.git
synced 2026-09-27 16:18:11 +08:00
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:
@@ -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);
|
||||||
|
|
||||||
|
|||||||
Reference in New Issue
Block a user