mirror of
https://github.com/Ranchero-Software/NetNewsWire
synced 2025-08-12 06:26:36 +00:00
Ensure we only mark on scroll when the setting is enabled
This commit is contained in:
@@ -434,7 +434,8 @@ class MasterTimelineViewController: UITableViewController, UndoableCommandRunner
|
||||
}
|
||||
|
||||
override func tableView(_ tableView: UITableView, didEndDisplaying cell: UITableViewCell, forRowAt indexPath: IndexPath) {
|
||||
guard let firstVisible = tableView.indexPathsForVisibleRows?.first,
|
||||
guard AppDefaults.shared.markArticlesAsReadOnScroll,
|
||||
let firstVisible = tableView.indexPathsForVisibleRows?.first,
|
||||
indexPath < firstVisible,
|
||||
let article = dataSource.itemIdentifier(for: indexPath),
|
||||
article.status.read == false,
|
||||
|
||||
Reference in New Issue
Block a user