Stop updating scroll position on updating timeline on iPad — it was fighting with user’s scrolling. Fixes #5330.

This commit is contained in:
Brent Simmons committed 2026-07-25 16:59:20 -07:00
1 parent c283705f0a
commit 45c78e97bb
2 files changed
+2 -2

No files matched your search

@@ -623,7 +623,7 @@ final class MainFeedCollectionViewController: UICollectionViewController, Undoab
if adjustScroll {
collectionView.selectItemAndScrollIfNotVisible(at: indexPath, animations: [])
} else {
collectionView.selectItem(at: indexPath, animated: false, scrollPosition: .centeredVertically)
collectionView.selectItem(at: indexPath, animated: false, scrollPosition: [])
}
}
}
@@ -277,7 +277,7 @@ final class MainTimelineModernViewController: UIViewController, UndoableCommandR
let indexPaths = collectionView.indexPathsForSelectedItems ?? []
if !indexPaths.contains(indexPath) {
Self.logger.debug("MainTimelineModernViewController: restoreSelectionIfNecessary does not contain selected index path")
collectionView.selectItem(at: indexPath, animated: false, scrollPosition: .centeredVertically)
collectionView.selectItem(at: indexPath, animated: false, scrollPosition: [])
}
}
}