Save scroll position on focus switch. Auto-scroll to bottom on new message (but only if already at the bottom).
Save scroll position on focus switch. Auto-scroll to bottom on new message (but only if already at the bottom).

akavlie/web-irc