Skip to content

fix(scrollbar): place thumb correctly when it reappears - #3003

Merged
bajrangCoder merged 2 commits into
mainfrom
fix/scrollbar-reappear-top
Oct 29, 2026
Merged

bajrangCoder merged 2 commits into
mainfrom
fix/scrollbar-reappear-top

Conversation

@bajrangCoder

@bajrangCoder bajrangCoder commented Oct 29, 2026 •

Copy link
Copy Markdown
Member

Fixes #3000 - the scrollbar thumb flashed at the top for a moment when it reappeared after fading out.

The value was set while the scrollbar was detached, so it was measured
against an empty rect and painted at 0 for a frame. Only check the track
along the scroll axis, and measure again after appending.
@greptile-apps

greptile-apps Bot commented Oct 29, 2026 •

Copy link
Copy Markdown
Contributor

RetriggerView in GreptileConfidence Score: 5/5

[Medium impact] The PR appears safe to merge; the previous stale-width issue is fixed and no new actionable issues were found.

Summary

Fixes the scrollbar thumb flashing at the top when it reappears.

  • Scrollbar thumbs return at their saved position.

Reviews (2) · Last reviewed commit: "fix(scrollbar): measure the track on eve..." · Reviewed by Greptile

Comment thread src/components/scrollbar/index.js Resolved
The parent can change size without a window resize (e.g. the sidebar
opening), so a cached track length can go stale.
@bajrangCoder

This comment was marked as outdated.

@bajrangCoder
bajrangCoder added this pull request to the merge queue Oct 29, 2026
Merged via the queue into main with commit 06db492 Oct 29, 2026
11 checks passed
@github-project-automation github-project-automation Bot moved this from Backlog to Done in The Code Board - Acode Oct 29, 2026
@bajrangCoder
bajrangCoder deleted the fix/scrollbar-reappear-top branch October 29, 2026 11:33
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

Status: Done

Development

Successfully merging this pull request may close these issues.

Scroll bar re-appearance starts from the top for an instant

1 participant