cinny
cinny copied to clipboard
Sent messages don't scroll to bottom when tab isn't active
Describe the bug
Normally when a message is sent in a room, the scrollbar stays locked to the bottom. However, when a message is sent and Cinny isn't the current tab in the browser, the scrollbar stays fixed to the last read message, so you have to scroll down to see new messages every time you switch back to the Cinny tab, which I find annoying.
Reproduction
- Select a room
- Scroll to the bottom
- Switch to a different tab
- Have someone send a message in the room
- Switch back to Cinny
- Scrollbar hasn't moved
Expected behavior
The scrollbar should stay at the bottom.
Platform and versions
OS: Fedora Linux
Browser: Brave 1.57.62 Chromium: 116.0.5845.180
Cinny version: 3.0.0
Matrix homeserver: matrix.org
Additional context
No response
This seems to also happen if you are tabbed out with a separate window (like a PWA in Chromium).
It also happens when I have the window/chat focussed. I always have to manually scroll, for any new message.