mirror of
https://git.tt-rss.org/fox/tt-rss.git
synced 2025-10-04 19:50:59 +02:00
moveToPost: tweak unexpanded 'prev' behavior
This commit is contained in:
parent
7b7daed93b
commit
24c215e2bb
@ -560,8 +560,13 @@ function moveToPost(mode, noscroll) {
|
||||
var ctr = $("headlines-frame");
|
||||
|
||||
if (!getInitParam("cdm_expanded")) {
|
||||
|
||||
if (!noscroll && article.offsetTop < ctr.scrollTop) {
|
||||
scrollArticle(-ctr.offsetHeight/3);
|
||||
} else {
|
||||
cdmExpandArticle(prev_id);
|
||||
cdmScrollToArticleId(prev_id, true);
|
||||
}
|
||||
} else {
|
||||
|
||||
if (!noscroll && article && article.offsetTop < ctr.scrollTop) {
|
||||
|
Loading…
x
Reference in New Issue
Block a user