]> git.wh0rd.org Git - tt-rss.git/commitdiff
cdm auto catchup: mark posts when scrolled above half their height
authorAndrew Dolgov <fox@madoka.volgo-balt.ru>
Wed, 3 Aug 2011 12:54:08 +0000 (16:54 +0400)
committerAndrew Dolgov <fox@madoka.volgo-balt.ru>
Wed, 3 Aug 2011 12:54:08 +0000 (16:54 +0400)
viewfeed.js

index 2ffad4a3d72e63e606f6ff6dc7de13025efd8022..552e42d03f620371cf7ad3f67ec44073b3b979ac 100644 (file)
@@ -1321,7 +1321,7 @@ function headlines_scroll_handler(e) {
                        $$("#headlines-frame > div[id*=RROW][class*=Unread]").each(
                                function(child) {
                                        if ($("headlines-frame").scrollTop >
-                                                       (child.offsetTop + child.offsetHeight)) {
+                                                       (child.offsetTop + child.offsetHeight/2)) {
 
                                                ids.push(child.id.replace("RROW-", ""));
                                        }