You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
{{ message }}
Repository navigation
Commit 4bc6597
Browse filesBrowse the repository at this point in the historyBrowse files
fix(ui): Control UI smooth scrolling ignores the reduced-motion preference (#130428)
* fix(ui): respect prefers-reduced-motion in imperative scrolling
Six Control UI actions passed behavior: "smooth" directly to
scrollIntoView, bypassing the reduced-motion preference because explicit
ScrollOptions are not overridden by the global CSS rule. Route all six
call sites through a shared resolveScrollBehavior() helper that returns
"auto" under prefers-reduced-motion: reduce and keeps the requested
behavior otherwise, mirroring the guards already used by chat/scroll.ts
and panels-tools-skills.ts.
Closes#127335
* fix(ui): centralize imperative scroll motion policy
---------
Co-authored-by: Agi-Asi <[email protected]>
Co-authored-by: Vincent Koc <[email protected]>
0 commit comments