Refactor scrolling into one method.
Also scroll when chat-window is activated.