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

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

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

Visibility: public

Requested revision: 7fc53dadc7d66483cdeac70f233059490785c9e2

Requested commit: 7fc53dadc7d66483cdeac70f233059490785c9e2

Commit: 7fc53dadc7d66483cdeac70f233059490785c9e2

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/7fc53dadc7d66483cdeac70f233059490785c9e2?format=markdown)
