mirror of
https://github.com/metabolist/metatext.git
synced 2024-11-25 09:41:00 +00:00
Don't modify scroll position if dragging or decelerating
This commit is contained in:
parent
25e8d80178
commit
0f53a1b676
1 changed files with 3 additions and 1 deletions
|
@ -335,7 +335,9 @@ private extension TableViewController {
|
|||
guard let self = self else { return }
|
||||
|
||||
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 {
|
||||
self.tableView.contentInset.bottom = max(
|
||||
self.tableView.safeAreaLayoutGuide.layoutFrame.height
|
||||
|
|
Loading…
Reference in a new issue