element-hq / element-hq/element-web

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

Open
#14,984 2 comments 0 reactions 0 assignees View on GitHub
O-Uncommon P2 S-Minor T-Defect
Dominant language
TypeScript
Stars
13.5k
Forks
2.8k
PR merge metrics
PR metrics pending

Description

### Description

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

* Scrolling to the bottom of room does not dismiss the "scroll-to-bottom" button in the bottom right corner.
* Sending a message does not scroll the room timeline to the bottom.

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](https://user-images.githubusercontent.com/1342360/90424577-4389de80-e0b6-11ea-8904-6006e705fff4.png)

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

- **Platform**: desktop
- **OS**: Manjaro Linux
- **DE**: GNOME3
- **Version**: Element nightly 2020081601

Contributor guide

Open the contributing guide

Assessment

This issue has not been assessed yet.

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.