element-hq / element-web

A glossy Matrix collaboration client for the web.
https://element.io
GNU Affero General Public License v3.0
11.19k stars 2k forks source link

Auto-scroll on new messages is broken on certain monitor setups #14984

Open anoadragon453 opened 4 years ago

anoadragon453 commented 4 years ago

Description

I only notice this behaviour on my external monitor (1920x1080), but not on my Laptop screen (2560x1440). I find that:

For example, I've used my scroll-wheel to scroll to the bottom of this room, but the scroll-to-bottom button is still showing, and still thinks there's a message hidden.

image

Moving the window to my Laptop screen and scrolling up and down dismisses the indicator.

I had a similar problem back in https://github.com/vector-im/element-web/issues/9342, though I'm not sure where the JS snipped went to test whether I'm having a non-int scrollTop value again.

Unlike the bug mentioned, this happens in all rooms.

Logs being sent: yes

Version information

anoadragon453 commented 3 years ago

@clokep noticed this behaviour as well while zoomed in a fair bit on his Element instance.

clokep commented 3 years ago

@clokep noticed this behaviour as well while zoomed in a fair bit on his Element instance.

After a bit of testing it seems that zooming a bit (Ctrl++) causes this be reproduced. (I had also increased the font size, but that seems unrelated after reverting it to normal.)