GeezerVisonThe World Wide Web, restored to 800 pixels of glory. | ||||||||||||||||||
| Home|About|Gaming cabinet|Archives|How it works|Starter sites | ||||||||||||||||||
GeezerVison is showing github.com — fix(web): scrolling up escapes live follow when thread history loads late by MatthewFeroz · Pull Request #23362 · pingdotgg/t3code Conversation
Contributor
ProblemWhen a thread's history arrives late, scrolling up can't escape live follow. Page Up, the wheel, touch and scrollbar drags all move the view, but follow stays on. The next layout change or stream chunk then pulls the timeline back to the end, and the "Scroll to end" pill never shows.
This is one cause of the snap-back in #20366. My reproduction and timing trace are in this comment. ChangeThe listeners now follow the scroll node itself, not a frame budget.
The listener bodies are unchanged. Most of the Scope and approvalThis fixes one defect. The opt-out listeners from #5566 can fail to attach, so the user can't leave live follow. #20366 is labeled The PR doesn't claim to fix every report in that issue. I didn't reproduce a snap during an active tool start or finish with a healthy load. Those may have other causes. VerificationRegression test. I added a test to
Manual check, same dev server for both runs. I used T3 Code's browser panel on Windows with an isolated The steps were: wait for history, which mounted about 4.8–4.9 s after navigation in both runs. Focus the timeline and press a native Page Up. Then shrink the timeline by 20 px (1000 to 980) by setting its container's height. I shrank the container because the panel's viewport resize didn't change the page's inner size in this setup. The earlier reproduction used a real 800 to 780 window resize and got the same snap.
Recordings of each full run, from reload through the delayed load, Page Up and shrink: before, after. Surfaces. The change is in the shared web timeline, which serves both the web and desktop clients. I only ran the web dev client, not the packaged desktop app. Mobile uses its own native timeline and isn't affected. Providers, contracts and connection modes are untouched, apart from how fast history arrives. No user or internal docs describe this behavior. Not checked. Real mouse-wheel and trackpad input on a slow load: the wheel path is covered by the browser test, not a manual run. Also thread switches where LegendList keeps the same scroll node. There, the listeners stay attached rather than being re-added. Their handlers read follow state from refs that the thread-switch reset already updates. The upward-scroll detector's baseline carries over, and it re-bases on the first scroll that moves down or shrinks the content. Written by Claude Opus 5.5 (
Sorry, something went wrong. Uh oh!
There was an error while loading. Please reload this page. All reactionsThe follow hook attached its opt-out listeners by retrying for 12 animation frames. Since the new orchestrator loads thread history over HTTP, the list can mount its scroll node seconds later, so the listeners never attached and the timeline kept snapping back to the end. The listeners now attach to the scroll node the timeline reports when it mounts, and detach when it goes.
Contributor
All reactions
Sorry, something went wrong. Uh oh!
There was an error while loading. Please reload this page.
Contributor
All reactions
Sorry, something went wrong. Uh oh!
There was an error while loading. Please reload this page.
Contributor
Author
All reactions
Sorry, something went wrong. Uh oh!
There was an error while loading. Please reload this page.
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
ReviewersUh oh!
There was an error while loading. Please reload this page. AssigneesNo one assignedLabels
size:M
ProjectsMilestoneNo milestoneDevelopmentSuccessfully merging this pull request may close these issues. Uh oh!
There was an error while loading. Please reload this page. 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. |