From: Andrew Dolgov Date: Wed, 27 Mar 2013 12:38:58 +0000 (+0400) Subject: reduce moveToPost longpost scroll height X-Git-Tag: 1.7.6~240 X-Git-Url: https://git.wh0rd.org/?a=commitdiff_plain;h=eb0ea018c1c1dcb1045840796da1a595b186d0e6;p=tt-rss.git reduce moveToPost longpost scroll height --- diff --git a/js/viewfeed.js b/js/viewfeed.js index cc14461f..87bb02be 100644 --- a/js/viewfeed.js +++ b/js/viewfeed.js @@ -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);