mirror of
https://git.tt-rss.org/git/tt-rss.git
synced 2025-12-13 21:25:55 +00:00
cdmScrollToArticle: set article read on selection
This commit is contained in:
@@ -491,7 +491,6 @@ function moveToPost(mode, noscroll, noexpand) {
|
|||||||
|
|
||||||
} else if (next_id) {
|
} else if (next_id) {
|
||||||
cdmScrollToArticleId(next_id, true);
|
cdmScrollToArticleId(next_id, true);
|
||||||
toggleUnread(next_id, 0);
|
|
||||||
}
|
}
|
||||||
|
|
||||||
} else if (next_id) {
|
} else if (next_id) {
|
||||||
@@ -516,7 +515,6 @@ function moveToPost(mode, noscroll, noexpand) {
|
|||||||
scrollArticle(-ctr.offsetHeight/4);
|
scrollArticle(-ctr.offsetHeight/4);
|
||||||
} else if (prev_id) {
|
} else if (prev_id) {
|
||||||
cdmScrollToArticleId(prev_id, noscroll);
|
cdmScrollToArticleId(prev_id, noscroll);
|
||||||
toggleUnread(next_id, 0);1
|
|
||||||
}
|
}
|
||||||
|
|
||||||
} else if (prev_id) {
|
} else if (prev_id) {
|
||||||
@@ -984,6 +982,9 @@ function cdmScrollToArticleId(id, force) {
|
|||||||
|
|
||||||
// expanded cdm has a 4px margin now
|
// expanded cdm has a 4px margin now
|
||||||
ctr.scrollTop = parseInt(e.offsetTop) - 4;
|
ctr.scrollTop = parseInt(e.offsetTop) - 4;
|
||||||
|
|
||||||
|
// article is selected manually, set it read
|
||||||
|
toggleUnread(id, 0);1
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|||||||
Reference in New Issue
Block a user