Remove drag / deceleration check

This commit is contained in:
Justin Mazzocchi 2021-02-18 22:24:00 -08:00
parent 8e1a654479
commit bb3fe556e2
No known key found for this signature in database
GPG key ID: E223E6937AAFB01C

View file

@ -420,9 +420,7 @@ private extension TableViewController {
guard let self = self else { return }
if let itemId = update.maintainScrollPositionItemId,
let indexPath = self.dataSource.indexPath(itemId: itemId),
!self.tableView.isDragging,
!self.tableView.isDecelerating {
let indexPath = self.dataSource.indexPath(itemId: itemId) {
if update.shouldAdjustContentInset {
self.tableView.contentInset.bottom = max(
self.tableView.safeAreaLayoutGuide.layoutFrame.height