mirror of
https://github.com/simplex-chat/simplex-chat.git
synced 2026-09-17 01:35:08 +00:00
change
This commit is contained in:
@@ -48,10 +48,10 @@ struct ReverseList<Content: View>: UIViewControllerRepresentable {
|
||||
itemsUpdaterTask?.cancel()
|
||||
// when tableView is dragging and new items are added, scroll position cannot be set correctly
|
||||
// so it's better to just wait until dragging ends
|
||||
if controller.tableView.isDragging {
|
||||
if controller.tableView.isDragging && !controller.tableView.isDecelerating {
|
||||
DispatchQueue.main.async {
|
||||
itemsUpdaterTask = Task {
|
||||
while controller.tableView.isDragging {
|
||||
while controller.tableView.isDragging && !controller.tableView.isDecelerating {
|
||||
do {
|
||||
try await Task.sleep(nanoseconds: 100_000000)
|
||||
} catch {
|
||||
|
||||
Reference in New Issue
Block a user