diff options
author | Andrew Dolgov <[email protected]> | 2018-11-30 20:00:27 +0300 |
---|---|---|
committer | Andrew Dolgov <[email protected]> | 2018-11-30 20:00:27 +0300 |
commit | 08bee97858f374352357fbfd4969bf7ebf4c2f85 (patch) | |
tree | 5543cfa616f222a7ee4b2096fbfb818fc248d82f /js/viewfeed.js | |
parent | ebc09be79d32239881727c0958ae545b23e87f6e (diff) |
cdmScrollToArticle: set article read on selection
Diffstat (limited to 'js/viewfeed.js')
-rwxr-xr-x | js/viewfeed.js | 5 |
1 files changed, 3 insertions, 2 deletions
diff --git a/js/viewfeed.js b/js/viewfeed.js index efb906cb6..373aa7dd0 100755 --- a/js/viewfeed.js +++ b/js/viewfeed.js @@ -491,7 +491,6 @@ function moveToPost(mode, noscroll, noexpand) { } else if (next_id) { cdmScrollToArticleId(next_id, true); - toggleUnread(next_id, 0); } } else if (next_id) { @@ -516,7 +515,6 @@ function moveToPost(mode, noscroll, noexpand) { scrollArticle(-ctr.offsetHeight/4); } else if (prev_id) { cdmScrollToArticleId(prev_id, noscroll); - toggleUnread(next_id, 0);1 } } else if (prev_id) { @@ -984,6 +982,9 @@ function cdmScrollToArticleId(id, force) { // expanded cdm has a 4px margin now ctr.scrollTop = parseInt(e.offsetTop) - 4; + + // article is selected manually, set it read + toggleUnread(id, 0);1 } } |