t3code icon indicating copy to clipboard operation
t3code copied to clipboard

[Bug]: Scroll to end button flickering

Open sharull9 opened this issue 1 month ago • 4 comments

Before submitting

  • [x] I searched existing issues and did not find a duplicate.
  • [x] I included enough detail to reproduce or investigate the problem.

Area

Not sure

Steps to reproduce

1: Start the app 2: Scroll top in any thread (old, new) 3: The "Scroll to end" button animation is flickering

Expected behavior

The animation should be smooth

Actual behavior

https://github.com/user-attachments/assets/2df4cab6-2a57-46c5-937d-13c230f708d4

Impact

Blocks work completely

Version or commit

0.1.4-nightly.20261028.3814

Environment

Windows 11 Pro 64-bit (build 26300), Chrome 156.0.8078.47, Node.js 24.22.1

Logs or stack traces


Screenshots, recordings, or supporting files

No response

Workaround

No response

sharull9 avatar Oct 28 '26 09:10 sharull9

As this #26375 already fixed this issue

sharull9 avatar Oct 28 '26 10:10 sharull9

Thanks for the recording. The video shows the pill jumping between two vertical positions every few frames while the thread is still. This is fixed on main by c677d5fc45e6d585e52bca03244a0870c588a555 (pingdotgg/t3code#26375, "scroll-to-end button no longer jumps up and down"). That commit landed after your build, 0.1.4-nightly.20261028.3814 (ce66aab13f), so it will ship in the next nightly.

The cause: the timeline's list ref callback was recreated on every render, and its cleanup briefly reported "no overflow". That flipped the collapse-on-scroll composer between layouts, and each flip moved the pill.

What I ran:

  • The regression test from that commit (MessagesTimeline.browser.test.tsx, "keeps reporting overflow while the composer inset changes") on your build: fails with expected [ false ] to not include false. On main (07f7f97609): passes.
  • Main in the web app (Chrome 156): on a long thread scrolled to the top, I sampled the pill's position every frame for 3 s. It held one position across 172 frames, with no flips.

Closing as fixed. If it still flickers on a nightly newer than 20261028.3814, comment here and we'll reopen.

juliusmarminge avatar Oct 28 '26 10:10 juliusmarminge

@juliusmarminge caught the same on Arch Linux today. Does this fix apply cross-platform?

tarurar avatar Oct 28 '26 12:10 tarurar

@tarurar You can check now by updating to the latest build of nightly version the fixed is applied.

sharull9 avatar Oct 28 '26 12:10 sharull9