cinnyapp / cinny

Yet another matrix client
https://cinny.in
GNU Affero General Public License v3.0
1.98k stars 257 forks source link

Sent messages don't scroll to bottom when tab isn't active #1500

Open Daxterapid opened 1 year ago

Daxterapid commented 1 year ago

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

  1. Select a room
  2. Scroll to the bottom
  3. Switch to a different tab
  4. Have someone send a message in the room
  5. Switch back to Cinny
  6. 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

soupglasses commented 11 months ago

This seems to also happen if you are tabbed out with a separate window (like a PWA in Chromium).

enginelesscc commented 8 months ago

It also happens when I have the window/chat focussed. I always have to manually scroll, for any new message.