summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorCătălin Badea <catalin.badea392@gmail.com>2012-08-11 18:37:18 (GMT)
committerCătălin Badea <catalin.badea392@gmail.com>2012-08-11 18:37:18 (GMT)
commit4b0af9ad53611182c6254111198f3b9e0129895f (patch)
tree8e01e66fcf481914ddeae1ae0f83c37b9e8f1cd3
parent5fc90dc3d7962bde27dc80b7a9722f6423213478 (diff)
downloadswift-contrib-4b0af9ad53611182c6254111198f3b9e0129895f.zip
swift-contrib-4b0af9ad53611182c6254111198f3b9e0129895f.tar.bz2
Reenable javascript autoscroll.
-rwxr-xr-xSwift/resources/themes/Default/Template.html6
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;