Skip to content

Fix number ticker roll between values#27

Merged
starc007 merged 1 commit into
mainfrom
fix/number-ticker-roll
Jun 10, 2026
Merged

Fix number ticker roll between values#27
starc007 merged 1 commit into
mainfrom
fix/number-ticker-roll

Conversation

@starc007

Copy link
Copy Markdown
Owner

What

Two fixes for NumberTicker when the value updates live:

  • Glyph keys were derived from the character, so any digit change remounted that Digit and the strip replayed from 0 to the new value. Keys are now place-value based (position from the right): digits keep identity across updates and roll the short way (4 to 3 is one step), growing values add glyphs on the left without re-keying the rest, and separators like the colon in a timer stay stable.
  • Stagger only plays on the entrance reveal now. It previously applied per-digit on every update, which made live counters ripple left to right like lag.

Verification

bun run check green; roll behavior verified by hand in the ticker preview and the dynamic island timer.

Glyph keys were derived from the character itself, so any digit change
remounted that Digit and the strip replayed from 0 to the new value.
Keys now come from place value (position from the right): a digit keeps
its identity across updates and rolls the short way to the new number,
and growing values add glyphs on the left without re-keying the rest.

Stagger now only applies to the entrance reveal; live updates roll all
digits immediately instead of trailing by index.
@starc007 starc007 merged commit f666b32 into main Jun 10, 2026
1 check passed
@starc007 starc007 deleted the fix/number-ticker-roll branch June 10, 2026 19:06
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant