Skip to content

Commit 3f3f179

Browse files
committed
Not touching the content offset
1 parent 63a1735 commit 3f3f179

1 file changed

Lines changed: 0 additions & 12 deletions

File tree

Sources/Extensions/UIKitExtension.swift

Lines changed: 0 additions & 12 deletions
Original file line numberDiff line numberDiff line change
@@ -68,8 +68,6 @@ public extension UITableView {
6868
return reloadData()
6969
}
7070

71-
let contentOffset = self.contentOffset
72-
7371
for changeset in stagedChangeset {
7472
if let interrupt = interrupt, interrupt(changeset), let data = stagedChangeset.last?.data {
7573
setData(data)
@@ -112,10 +110,6 @@ public extension UITableView {
112110
}
113111
}
114112
}
115-
116-
if contentSize.height > bounds.size.height {
117-
setContentOffset(contentOffset, animated: false)
118-
}
119113
}
120114

121115
private func _performBatchUpdates(_ updates: () -> Void) {
@@ -152,8 +146,6 @@ public extension UICollectionView {
152146
return reloadData()
153147
}
154148

155-
let contentOffset = self.contentOffset
156-
157149
for changeset in stagedChangeset {
158150
if let interrupt = interrupt, interrupt(changeset), let data = stagedChangeset.last?.data {
159151
setData(data)
@@ -196,10 +188,6 @@ public extension UICollectionView {
196188
}
197189
})
198190
}
199-
200-
if contentSize.height > bounds.size.height {
201-
setContentOffset(contentOffset, animated: false)
202-
}
203191
}
204192
}
205193
#endif

0 commit comments

Comments
 (0)