Fix scrolling chat when in the background
Before scrollTo() was used, but this does not work when the window is not visible.
So now when the chat is in the background we scroll only half a line and stop following.
The user will see that something happened and have the anchor to jump to the bottom.
Signed-off-by: Joas Schilling <coding@schilljs.com>
Loading
Please register or sign in to comment