diff --git a/js/websockets.js b/js/websockets.js index 790d0fa..8ed3648 100644 --- a/js/websockets.js +++ b/js/websockets.js @@ -466,7 +466,7 @@ weechat.controller('WeechatCtrl', ['$rootScope', '$scope', '$store', '$timeout', if(readmarker) { readmarker.scrollIntoView(); }else{ - window.scroll(0, window.scrollMaxY); + window.scroll(0, document.documentElement.scrollHeight - document.documentElement.clientHeight); } }, 300); }