GV

GeezerVison

The World Wide Web, restored to 800 pixels of glory.

Home|About|Gaming cabinet|Archives|How it works|Starter sites

On this site

  • Sign in
  • ActionsCI/CD and automation
  • CodespacesCloud development environments
  • All Features
  • Documentation
  • Training
  • Certifications
  • Build with Copilot
  • Customize Copilot
  • Integrations
  • Trending repos
  • GitHub Sponsors
  • Developer articles
  • Enterprises

This view

  • Original page
  • New address

GeezerVison is showing github.com — fix(web): scroll-to-end button no longer jumps up and down by t3dotgg · Pull Request #26375 · pingdotgg/t3code

Conversation

@t3dotgg

@t3dotgg t3dotgg commented Oct 28, 2026

Copy link
Copy Markdown
Member

The "Scroll to end" button kept jumping up and down while you were scrolled up in a thread.

The timeline's list ref callback re-ran on every render. Its cleanup reports "content fits" for one frame, and the real measure comes back one frame later. The composer uses that value to pick its resting layout. So it flipped between resting and expanded (110px and 147.5px), the button's bottom moved with it, and the new composer inset re-rendered the timeline. That ran the ref callback again, so the loop never ended. It started with #25463.

The fix wraps the ref callback in useStableCallback, so the list attaches once per mount.

Proof: I reproduced it in a dev build. The button moved 8 times in 8 seconds before the fix and 0 times after. Scroll to end and thread switching still work. A new browser test fails on main and passes with the fix.

Reviewed with sol-loop: 1 round with GPT-6.1 Sol. Sol verdict: approved

Created with Claude Opus 5.5 in Claude Code.

🤖 Generated with Claude Code

Sorry, something went wrong.

Uh oh!

There was an error while loading. Please reload this page.

TroyHickling and OmkarK45 reacted with thumbs up emoji
All reactions
  • 👍 2 reactions
@t3dotgg @claude
fix(web): scroll-to-end button no longer jumps up and down
df0126c
The timeline's list ref callback re-ran on every render. Its cleanup
reported that the content fits for one frame, which flipped the resting
composer, moved the button, and re-rendered the timeline again. A stable
ref callback attaches the list once per mount.

Co-Authored-By: Claude Opus 5.5 <[email protected]>
@github-actions github-actions Bot added vouch:trusted Author is trusted by repo permissions or the VOUCHED list. size:XS 0-9 changed lines (additions + deletions). labels Oct 28, 2026
macroscopeapp[bot]
macroscopeapp Bot approved these changes Oct 28, 2026
View reviewed changes
@macroscopeapp

macroscopeapp Bot commented Oct 28, 2026

Copy link
Copy Markdown
Contributor

Approvability

Verdict: Approved at df0126c

Macroscope's review found this PR approvable — Stabilizes the timeline’s ref callback to prevent unnecessary reattachments that make the scroll-to-end button jump. The change is limited to UI lifecycle behavior and preserves existing cleanup.

You can add or adjust custom eligibility rules. Learn more.

All reactions

Sorry, something went wrong.

Uh oh!

There was an error while loading. Please reload this page.

@t3dotgg
t3dotgg merged commit c677d5f into main Oct 28, 2026
30 of 31 checks passed

Uh oh!

There was an error while loading. Please reload this page.

@t3dotgg
t3dotgg deleted the t3/fix-scroll-to-end-flicker branch October 28, 2026 09:22
This was referenced Oct 28, 2026
fix(web): scroll-to-end pill no longer jitters after scrolling up #26365
Closed
[Bug]: "Scroll to end" pill changes horizontal position between frames #26338
Closed
@akhanaton akhanaton mentioned this pull request Oct 28, 2026
[Bug]: "Scroll to end" pill stays visible when the timeline is already at the end during a running turn #26386
Closed
2 tasks done
@sharull9 sharull9 mentioned this pull request Oct 28, 2026
[Bug]: Scroll to end button flickering #26385
Closed
2 tasks done
@JoshAntBrown JoshAntBrown mentioned this pull request Oct 28, 2026
fix(web): keep the scroll-to-end button steady #26363
Closed
Pipyakas pushed a commit to Pipyakas/t3code that referenced this pull request Oct 28, 2026
@t3dotgg @claude @Pipyakas
fix(web): scroll-to-end button no longer jumps up and down (pingdotgg…
9c12b18
…#26375)

Co-authored-by: Claude Opus 5.5 <[email protected]>
(cherry picked from commit c677d5f)
@adampeterhiggins adampeterhiggins mentioned this pull request Oct 29, 2026
chore: sync upstream through 07f7f976 adampeterhiggins/t3code#512
Merged
19 tasks done
incognitojam pushed a commit to incognitojam/styal that referenced this pull request Nov 4, 2026
@t3dotgg @incognitojam
fix(web): scroll-to-end button no longer jumps up and down (pingdotgg…
75b57cf
…#26375)

Co-authored-by: Claude Opus 5.5 <[email protected]>

Fork adaptation: The patch is upstream's. Its new browser test conflicted only because its context included an upstream timeline heading test the fork does not have yet, so the test sits after the fork's preceding test instead.

(cherry picked from commit c677d5f)
Upstream-PR: 26375
Early-Import: fixes the Scroll to end button oscillation that pingdotgg#25463 introduces
@olafura olafura mentioned this pull request Nov 7, 2026
test(features): ledger upstream T3 Code through 9504a09f08 hal-c2/hal-c2#1189
Merged
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Reviewers

@macroscopeapp macroscopeapp[bot] macroscopeapp[bot] approved these changes

Uh oh!

There was an error while loading. Please reload this page.

Assignees

No one assigned

Labels

size:XS 0-9 changed lines (additions + deletions). vouch:trusted Author is trusted by repo permissions or the VOUCHED list.

Projects

None yet

Milestone

No milestone

Development

Successfully merging this pull request may close these issues.

Uh oh!

There was an error while loading. Please reload this page.

1 participant

@t3dotgg
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
You are visitor 01402775 — GeezerVison does not store the pages you look up.
Best viewed with Netscape Navigator 4.7 or Internet Explorer 6 at 800×600. No cookies required.