cinny icon indicating copy to clipboard operation
cinny copied to clipboard

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

Open Daxterapid opened this issue 1 year ago • 2 comments

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

Daxterapid avatar Oct 24 '23 01:10 Daxterapid

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

soupglasses avatar Dec 17 '23 15:12 soupglasses

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

enginelesscc avatar Mar 23 '24 20:03 enginelesscc