Force the scroll even if the currently selected row is the same
This commit is contained in:
parent
6708017b5d
commit
e3361abc77
@ -670,7 +670,7 @@ private extension MasterFeedViewController {
|
|||||||
}
|
}
|
||||||
|
|
||||||
func restoreSelectionIfNecessary() {
|
func restoreSelectionIfNecessary() {
|
||||||
if let indexPath = coordinator.masterFeedIndexPathForCurrentTimeline(), indexPath != tableView.indexPathForSelectedRow {
|
if let indexPath = coordinator.masterFeedIndexPathForCurrentTimeline() {
|
||||||
tableView.selectRowAndScrollIfNotVisible(at: indexPath, animated: false, deselect: coordinator.isRootSplitCollapsed)
|
tableView.selectRowAndScrollIfNotVisible(at: indexPath, animated: false, deselect: coordinator.isRootSplitCollapsed)
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
Loading…
x
Reference in New Issue
Block a user