]> git.wh0rd.org Git - tt-rss.git/commitdiff
infinite scrolling: tweaks
authorAndrew Dolgov <fox@madoka.spb.ru>
Thu, 9 Aug 2007 07:41:14 +0000 (08:41 +0100)
committerAndrew Dolgov <fox@madoka.spb.ru>
Thu, 9 Aug 2007 07:41:14 +0000 (08:41 +0100)
feedlist.js
viewfeed.js

index 66b040f9f8f9351f4d9d872a48ceeecdf2552468..1e2770bd4f278a7ded5c8653d1aa8b3f06e667d1 100644 (file)
@@ -57,6 +57,8 @@ function viewfeed(feed, subop, is_cat, subop_param, skip_history, offset) {
 
 //             if (!offset) page_offset = 0;
 
+               var page_offset = 0;
+
                if (offset > 0) {
                        page_offset = offset;
                } else {
index e464f21981fbb1b7f42eb51eb70cb2b38dfb2314..09cdbafbca8e8e758853774833d0873fbd4e8860 100644 (file)
@@ -966,7 +966,7 @@ function headlines_scroll_handler() {
 
                var e = document.getElementById("headlinesInnerContainer");
 
-               if (e.scrollTop + e.offsetHeight == e.scrollHeight) {
+               if (e.scrollTop + e.offsetHeight > e.scrollHeight - (e.scrollHeight/4)) {
                        debug("more cowbell!");
 
                        viewNextFeedPage();