From 824e86774cb329cf73096613f2173283f1342350 Mon Sep 17 00:00:00 2001 From: Tor Hveem Date: Sat, 12 Oct 2013 21:16:40 +0200 Subject: [PATCH] Use non-browser specific code for scrolling --- js/websockets.js | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) 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); }