Skip to content

Fix chat scrolling during streaming - #61

Merged
Blaizzy merged 1 commit into
mainfrom
pc/fix-streaming-scroll
Jul 23, 2026
Merged

Fix chat scrolling during streaming#61
Blaizzy merged 1 commit into
mainfrom
pc/fix-streaming-scroll

Conversation

@Blaizzy

@Blaizzy Blaizzy commented Jul 23, 2026

Copy link
Copy Markdown
Owner

Summary

  • Stop automatic transcript following as soon as the user begins scrolling.
  • Preserve the user's position through tracking and deceleration.
  • Resume following only when the scroll gesture ends at the transcript bottom.

Root cause

Auto-follow was controlled by a 160-point near-bottom geometry threshold. During streaming, frequent content updates could issue another scroll-to-bottom before an upward gesture moved beyond that threshold, pulling the transcript back down.

Impact

Users can now scroll up and review earlier messages while a response continues streaming. The transcript still follows new text when the user remains at the bottom.

Validation

  • make xcode-build
  • Full Xcode unit-test scheme: 33 tests passed, 0 failures

@Blaizzy
Blaizzy marked this pull request as ready for review July 23, 2026 16:18
@Blaizzy
Blaizzy merged commit 81b8f3e into main Jul 23, 2026
2 checks passed
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant