From d909f46b976ebd46a22b5b8f26afc95e5859254a Mon Sep 17 00:00:00 2001 From: Ambrose Chua Date: Tue, 19 Nov 2013 17:15:15 +0800 Subject: [PATCH] Tiny #perfmatters fix for scroll. --- .gitignore | 2 +- index.php | 4 ++-- 2 files changed, 3 insertions(+), 3 deletions(-) diff --git a/.gitignore b/.gitignore index 6289790..bafea26 100644 --- a/.gitignore +++ b/.gitignore @@ -1 +1 @@ -startup*.png, config-*.php \ No newline at end of file +startup*.png \ No newline at end of file diff --git a/index.php b/index.php index 15be362..9de7163 100644 --- a/index.php +++ b/index.php @@ -114,7 +114,7 @@ include 'checklogin.php'; $("#pulley").html("Tap to close"); } }); - $("#scrollable").scroll(function() { + setInterval(function() { if ($("#scrollable").scrollTop()>=75) { newbarvisible=false; } @@ -130,7 +130,7 @@ include 'checklogin.php'; $("#floating").fadeIn("slow"); } } - }); + }, 1000); $("#list").on("click", ".post", function() { postid=$(this).attr("class"); postid=postid.replace("post postid", "");