diff options
-rwxr-xr-x | Swift/resources/themes/Default/Template.html | 6 |
1 files changed, 1 insertions, 5 deletions
diff --git a/Swift/resources/themes/Default/Template.html b/Swift/resources/themes/Default/Template.html index 3885330..9d5c3a0 100755 --- a/Swift/resources/themes/Default/Template.html +++ b/Swift/resources/themes/Default/Template.html @@ -272,15 +272,11 @@ var intervall_scroll; function scrollToBottom() { - if (disableAutoScroll) { - return; - } - //document.body.scrollTop = (document.body.scrollHeight-window.innerHeight); //return; if( intervall_scroll ) clearInterval( intervall_scroll ); intervall_scroll = setInterval( function() { - var target_scroll = (document.body.scrollHeight-window.innerHeight); + var target_scroll = (document.body.scrollHeight-window.innerHeight) - 1; var scrolldiff = target_scroll - document.body.scrollTop; if ( document.body.scrollTop != target_scroll ) { var saved_scroll = document.body.scrollTop; |