Prevent scrolling if the feed selection was done by the user

This commit is contained in:
Maurice Parker
2022-11-11 17:39:28 -06:00
parent eba6c364da
commit 8bbc8d42a1

View File

@@ -530,7 +530,9 @@ class MasterFeedViewController: UITableViewController, UndoableCommandRunner, Ma
func updateFeedSelection(animations: Animations) {
if let indexPath = coordinator.currentFeedIndexPath {
tableView.selectRowAndScrollIfNotVisible(at: indexPath, animations: animations)
if indexPath != tableView.indexPathForSelectedRow {
tableView.selectRowAndScrollIfNotVisible(at: indexPath, animations: animations)
}
} else {
if let indexPath = tableView.indexPathForSelectedRow {
if animations.contains(.select) {