Add iOS setting for mark as read on scroll

This commit is contained in:
everhardt
2021-10-27 21:17:04 +02:00
parent 7b8bed9ac2
commit b8cae328f5
4 changed files with 66 additions and 1 deletions

View File

@@ -516,7 +516,11 @@ class MasterTimelineViewController: UITableViewController, UndoableCommandRunner
@objc func scrollPositionDidChange() {
coordinator.timelineMiddleIndexPath = tableView.middleVisibleRow()
if !AppDefaults.shared.markArticlesAsReadOnScroll {
return
}
guard let firstVisibleRowIndexPath = tableView.indexPathsForVisibleRows?[0] else { return }
guard let firstVisibleArticle = dataSource.itemIdentifier(for: firstVisibleRowIndexPath) else {