# Respect chat scroll position during streaming updates · pingdotgg/t3code

[View on GitCafe](https://git.cafe/pingdotgg/t3code/commit/0476e50b1260b81ffd083d5f916a4c8433c04597)

Repository: [pingdotgg/t3code](https://git.cafe/pingdotgg/t3code)

Visibility: public

Requested revision: 0476e50b1260b81ffd083d5f916a4c8433c04597

Requested commit: 0476e50b1260b81ffd083d5f916a4c8433c04597

Commit: 0476e50b1260b81ffd083d5f916a4c8433c04597

Tree: 0c97af9a9d9055945e2ca4b371365185e1d4f196

Author: Julius Marminge

Committer: Julius Marminge

## Message

```
Respect chat scroll position during streaming updates

- only auto-scroll when the user is already near the bottom
- centralize near-bottom detection in `chat-scroll.ts` with a 64px threshold
- add unit tests covering threshold and edge-case behavior

Co-authored-by: codex <codex@users.noreply.github.com>

```

## Parents

- [98c4b7c724da7f6aeca67a8c34f53af666fa8a01](https://git.cafe/pingdotgg/t3code/commit/98c4b7c724da7f6aeca67a8c34f53af666fa8a01?format=markdown)

[Source at this commit](https://git.cafe/pingdotgg/t3code/tree/0476e50b1260b81ffd083d5f916a4c8433c04597?format=markdown)
