Skip to content

fix(registry): fix message-scroller scrollbar strobing during autoscroll on classic scrollbar platforms (#11576) - #11580

Open
loulanyue wants to merge 1 commit into
shadcn-ui:mainfrom
loulanyue:fix/11576-messagescroller-scrollbar-transparent
Open

fix(registry): fix message-scroller scrollbar strobing during autoscroll on classic scrollbar platforms (#11576)#11580
loulanyue wants to merge 1 commit into
shadcn-ui:mainfrom
loulanyue:fix/11576-messagescroller-scrollbar-transparent

Conversation

@loulanyue

Copy link
Copy Markdown

Summary

Closes #11576.

In apps/v4/registry/new-york-v4/ui/message-scroller.tsx, MessageScrollerViewport applied data-autoscrolling:scrollbar-none.

During programmatic streaming scrolls, the data-autoscrolling attribute toggles at chunk cadence (clearing after ~180ms timeout). When network/LLM chunk intervals exceed this threshold, the attribute flips on and off repeatedly, causing scrollbar-width to alternate between thin and none. On platforms with classic scrollbars (Windows, Linux, macOS with "Show scroll bars: Always"), this causes the scrollbar to strobe visibly and reflow content on each flip.

This change aligns new-york-v4/ui/message-scroller.tsx with the bases/radix, bases/base, and bases/aria implementations which use data-autoscrolling:scrollbar-thumb-transparent data-autoscrolling:scrollbar-track-transparent instead of scrollbar-none.

Changes

  • Replace data-autoscrolling:scrollbar-none with data-autoscrolling:scrollbar-thumb-transparent data-autoscrolling:scrollbar-track-transparent in apps/v4/registry/new-york-v4/ui/message-scroller.tsx.

@vercel

vercel Bot commented Aug 21, 2026

Copy link
Copy Markdown
Contributor

@loulanyue is attempting to deploy a commit to the shadcn-pro Team on Vercel.

A member of the Team first needs to authorize it.

@github-actions

Copy link
Copy Markdown
Contributor

Can you sign the commits please? See https://docs.github.com/en/authentication/managing-commit-signature-verification/signing-commits. Thank you.

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.

[bug]: MessageScroller registry item: data-autoscrolling:scrollbar-none strobes the scrollbar during streaming on classic-scrollbar platforms

1 participant