Progress Indicator As Scrubber

Build a seek control from a progress indicator plus a transparent pointer layer instead of from a slider — a hit box taller than the visual, drags consumed so an ancestor pager cannot steal a scrub, the drag's own fraction shown while interacting, a thumb drawn by you, and the separate decision of drawing an element closer without moving its layout slot. Use when the visual you need has no slider equivalent, when a scrub gets hijacked by a swipe or a sheet, when the bar jumps back mid-drag, or when a thin control is impossible to hit.

maxrave-dev 77de8c1 6.0 KB Updated

File contents

maxrave-dev/kotlin-footguns/tree/main/skills/progress-indicator-as-scrubber commit 77de8c1dd3

Frequently asked questions

npx skillmds@latest add maxrave-dev/progress-indicator-as-scrubber