From eb0ea018c1c1dcb1045840796da1a595b186d0e6 Mon Sep 17 00:00:00 2001 From: Andrew Dolgov Date: Wed, 27 Mar 2013 16:38:58 +0400 Subject: [PATCH] reduce moveToPost longpost scroll height --- js/viewfeed.js | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/js/viewfeed.js b/js/viewfeed.js index cc14461f4..87bb02be3 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);