From 4479d724ae09eecb1cdbabe12b4cb834718c5048 Mon Sep 17 00:00:00 2001 From: Maurice Parker Date: Sun, 21 Apr 2019 17:55:28 -0500 Subject: [PATCH] Add note to make this scroll like the desktop version. --- iOS/Timeline/MasterTimelineViewController.swift | 5 ++++- 1 file changed, 4 insertions(+), 1 deletion(-) diff --git a/iOS/Timeline/MasterTimelineViewController.swift b/iOS/Timeline/MasterTimelineViewController.swift index 50449f9ce..37a07c183 100644 --- a/iOS/Timeline/MasterTimelineViewController.swift +++ b/iOS/Timeline/MasterTimelineViewController.swift @@ -274,7 +274,10 @@ class MasterTimelineViewController: UITableViewController, UndoableCommandRunner if !article.status.read { markArticles(Set([article]), statusKey: .read, flag: true) } - tableView.selectRow(at: indexPath, animated: true, scrollPosition: .none) + // TODO: make this scroll like the desktop version + if tableView.indexPathForSelectedRow != indexPath { + tableView.selectRow(at: indexPath, animated: true, scrollPosition: .middle) + } } }