]> git.wh0rd.org Git - tt-rss.git/commitdiff
reduce moveToPost longpost scroll height
authorAndrew Dolgov <fox@madoka.volgo-balt.ru>
Wed, 27 Mar 2013 12:38:58 +0000 (16:38 +0400)
committerAndrew Dolgov <fox@madoka.volgo-balt.ru>
Wed, 27 Mar 2013 12:38:58 +0000 (16:38 +0400)
js/viewfeed.js

index cc14461f4c5d6bb196f28a5957b71ecb8aa89acf..87bb02be38a0d5f49a80fea9e340c282aec20848 100644 (file)
@@ -541,7 +541,7 @@ function moveToPost(mode, noscroll) {
                                        if (!noscroll && article && article.offsetTop + article.offsetHeight >
                                                        ctr.scrollTop + ctr.offsetHeight) {
 
-                                               scrollArticle(ctr.offsetHeight/2);
+                                               scrollArticle(ctr.offsetHeight/4);
 
                                        } else if (next_id) {
                                                cdmExpandArticle(next_id);
@@ -566,7 +566,7 @@ function moveToPost(mode, noscroll) {
                                        if (!getInitParam("cdm_expanded")) {
 
                                                if (!noscroll && article.offsetTop < ctr.scrollTop) {
-                                                       scrollArticle(-ctr.offsetHeight/3);
+                                                       scrollArticle(-ctr.offsetHeight/4);
                                                } else {
                                                        cdmExpandArticle(prev_id);
                                                        cdmScrollToArticleId(prev_id, true);
@@ -578,7 +578,7 @@ function moveToPost(mode, noscroll) {
                                                } else if (!noscroll && prev_article &&
                                                                prev_article.offsetTop < ctr.scrollTop) {
                                                        cdmExpandArticle(prev_id);
-                                                       scrollArticle(-ctr.offsetHeight/3);
+                                                       scrollArticle(-ctr.offsetHeight/4);
                                                } else if (prev_id) {
                                                        cdmExpandArticle(prev_id);
                                                        cdmScrollToArticleId(prev_id, noscroll);