mirror of
https://github.com/metabolist/metatext
synced 2025-01-15 03:17:16 +01:00
Don't modify scroll position if dragging or decelerating
This commit is contained in:
parent
25e8d80178
commit
0f53a1b676
@ -335,7 +335,9 @@ 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
|
||||||
|
Loading…
Reference in New Issue
Block a user