# Preserve chat auto-scroll until user scrolls up · flambo/t3code

[View on GitCafe](https://git.cafe/flambo/t3code/commit/0cb4e75728ef9e778cb7485a44ee8903c6bda9c7)

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

Visibility: public

Requested revision: 0cb4e75728ef9e778cb7485a44ee8903c6bda9c7

Requested commit: 0cb4e75728ef9e778cb7485a44ee8903c6bda9c7

Commit: 0cb4e75728ef9e778cb7485a44ee8903c6bda9c7

Tree: a976a47ab56d8d5dbaae393e9edea1e6df2a6f66

Author: Julius Marminge

Committer: Julius Marminge

## Message

```
Preserve chat auto-scroll until user scrolls up

- Track last scroll position and content height to avoid disabling tail mode on new messages
- Stop auto-scroll immediately on upward mouse wheel input
- Keep chat pinned to bottom reliably while streaming

```

## Parents

- [01accc005e10e469f19a351541dba3b89a6bcb32](https://git.cafe/flambo/t3code/commit/01accc005e10e469f19a351541dba3b89a6bcb32?format=markdown)

[Source at this commit](https://git.cafe/flambo/t3code/tree/0cb4e75728ef9e778cb7485a44ee8903c6bda9c7?format=markdown)
