Files
Arkie-Library-Frontend/src/components/messageStream
TerryM edba16bbd2
All checks were successful
Deploy to Frontend Servers / deploy (push) Successful in 28s
feat(stream): hold deep-link scroll until first content reveals
Banner / Home-card deep-links were starting the smooth scroll the
moment the target post entered the DOM, before the in-view Reveal
animations on the top bubbles had time to fade in. Users perceived the
page as 'scrolling past nothing' because most bubbles were still at
opacity 0 when the viewport moved.

Track the moment first non-skeleton content appears for the current
target via firstContentAtRef, then hold the smooth-scroll start until
~300ms after that — long enough for the initial Reveal staggers to
play. Elapsed time is subtracted so cached arrivals don't pay the full
wait twice, and the ref resets per target so each navigation re-times.

Verified in the browser: with cold cache, content arrives ~480ms after
click, smooth scroll starts ~800ms (300ms settle), reaches deep target
by ~1.3s. With warm cache same pattern; users now see content before
motion begins.
2026-06-02 11:48:05 +08:00
..
2026-06-01 23:00:28 +08:00
2026-06-01 23:00:28 +08:00