You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Scrub vertically to change precision, horizontally to change value
Two related fixes for the readout looking frozen mid-drag.
First, the default precision is now derived from the component's own
per-pixel step rather than fixed at 2 places. The step is range-scaled,
so at 2 places a fine-ranged component like OKLCH chroma advanced its
last digit only every ~4px — the number appeared stuck while the colour
plainly changed. Deriving it from the step means the last digit always
moves about once per pixel. Precision already on display still wins if
it's finer, so starting a scrub never truncates what's shown.
Second, vertical travel during a drag now trades precision: dragging
down reveals more decimals (with a proportionally finer step), up
rounds them off (coarser step). The drag re-anchors whenever precision
changes, so rescaling the axis alters sensitivity without making the
value jump. Only for decimal components — integers have no decimals to
trade — and this is only safe to do mid-drag because the field's text
stays frozen and the live value renders in the overlay pill, which
can't reflow the row.
0 commit comments