mirror of
https://github.com/simplex-chat/simplex-chat.git
synced 2024-12-17 17:20:21 +01:00
delay setting destination on long scrolls
This commit is contained in:
@@ -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?) {
|
||||
|
||||
Reference in New Issue
Block a user