Skip to content
Open
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
5 changes: 5 additions & 0 deletions .changeset/web-scroll-follow-reengage.md
Original file line number Diff line number Diff line change
@@ -0,0 +1,5 @@
---
"@moonshot-ai/kimi-code": patch
---

web: Re-engage the scroll auto-follow only when reaching the true bottom (or via the new-message pill) — reading near the streaming tail no longer yanks the view to the bottom on small downward scrolls.
8 changes: 6 additions & 2 deletions apps/kimi-web/src/components/chat/ConversationPane.vue
Original file line number Diff line number Diff line change
Expand Up @@ -481,8 +481,12 @@ const following = ref(true);
const showPill = ref(false);

/** Within this many pixels from the bottom counts as "at the bottom" —
scrolling DOWN into this zone re-enables the follow. */
const BOTTOM_THRESHOLD = 80;
scrolling fully INTO it re-enables the follow. Kept deliberately small:
a large threshold re-engaged the follow while users were still reading
the streaming tail, yanking them back to the bottom on any small
downward scroll. Re-follow now requires reaching the bottom (or
clicking the new-message pill). */
const BOTTOM_THRESHOLD = 8;
const USER_ACTION_FOLLOW_LOCK_MS = 1000;

function distanceFromBottom(): number {
Expand Down