Reduce automatic back pagination delay to 0.25 seconds

This commit is contained in:
Stefan Ceriu 2022-11-22 19:33:32 +02:00 committed by Stefan Ceriu
parent 8647152980
commit d89782a8b2

View File

@ -77,7 +77,7 @@ struct TimelineItemList: View {
guard !isBackPaginating else { return }
// Repeat the pagination if the top edge is still visible.
DispatchQueue.main.asyncAfter(deadline: .now() + .seconds(1)) {
DispatchQueue.main.asyncAfter(deadline: .now() + 0.25) {
guard visibleEdges.contains(.top) else { return }
requestBackPagination()
}