delay setting destination on long scrolls

This commit is contained in:
Diogo
2024-11-07 21:22:22 +00:00
parent 7376b289ca
commit b4342c4037
+6 -1
View File
@@ -221,7 +221,12 @@ struct ReverseList<Content: View>: UIViewControllerRepresentable {
animated: animated
)
}
Task { representer.scrollState = .atDestination }
DispatchQueue.main.asyncAfter(deadline: .now() + 0.5) {
Task {
self.representer.scrollState = .atDestination
}
}
}
func update(items: [ChatItem], gap: ChatGap?) {