1
0
mirror of https://github.com/chylex/Nextcloud-News.git synced 2025-04-09 19:15:42 +02:00

Mark latest post as read when clicking on right arrow shortcut

Signed-off-by: Artem Lavrukhin <lavryha4590@gmail.com>
This commit is contained in:
Artem Lavrukhin 2021-10-22 12:32:54 +03:00 committed by Benjamin Brahmer
parent 6f1a506bbd
commit 9fb9a4c6da
2 changed files with 3 additions and 0 deletions

View File

@ -9,6 +9,7 @@ The format is almost based on [Keep a Changelog](https://keepachangelog.com/en/1
- Updated "New Folder" and "All articles" icons to differentiate them from "Subscribe" and "All articles".
### Fixed
- Mark the latest post in a feed as read when clicking on the right arrow key.
# Releases
## [16.2.0] - 2021-10-18

View File

@ -288,6 +288,8 @@
var nextElement = activeElement.next();
if (nextElement.length > 0) {
scrollToItem(scrollArea, nextElement, expandItemInCompact);
} else if (nextElement.length === 0) {
activeElement.find('.utils').trigger('click');
} else {
// in case this is the last item it should still scroll below
// the