---
title: "Scrub Number"
url: "https://sanyam.sh/lab/scrub-number"
date: "2026-10-12"
---

# Scrub Number

Drag an icon or number. Shift ×10, Alt ×0.1, drag down to slow.

two words and the four numbers that set them, each one scrubbable: press its icon or the number and drag, and let go mid-drag to throw it.

key insight: the scrub integrates each pointer event at the speed in force for it, rather than mapping total distance to a value, so shift, alt or a hand drifting down changes what comes next and never what came before. the throw runs through the same integrator, so a coasting value still catches on bold, on solid, and on inter's own tracking for its size.

x-ray reads out the hand, the gain, the raw value and a detent's hold as you drag. select both words and a scrub moves each by the same amount. typing takes sums, `size/40` included.

- Source: https://github.com/SanyamPunia/www/blob/main/components/labs/scrub-number/scrub.ts
