SIGN IN SIGN UP

ui: Add configurable scrollbar reveal behavior (#62282)

Auto-hiding scrollbars currently reveal whenever their prepaint geometry
changes. That matches browser behavior, but it causes continuously
updating views to restart the visibility timer on every content change
even when the user has not scrolled.

Add a per-instance `ScrollbarRevealPolicy`. The default
`ScrollOrContentChange` policy preserves the existing behavior for all
current callers. Views with continuously growing content can opt into
`ScrollOnly`, which reveals only when the offset changes independently
of content size, including when a view remains anchored to the bottom.

Tests pin the default behavior, the opt-in behavior, ordinary scrolling,
stationary content growth, bottom-anchored growth, and scrolling while
content is growing.

Release Notes:

- N/A
C
Conrad Irwin committed
6b2aa1c90aeb72cadfd30ed12141ed9e2569eded
Parent: 101ca00
Committed by GitHub <noreply@github.com> on 8/6/2026, 11:54:07 PM