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
1 changed files with 1 additions and 3 deletions

View File

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