From 92266cac7d98c9fc14050a9bddae632e185ca732 Mon Sep 17 00:00:00 2001 From: Avently <7953703+avently@users.noreply.github.com> Date: Thu, 26 Dec 2024 08:31:46 -0800 Subject: [PATCH] change --- apps/ios/Shared/Views/Chat/ReverseList.swift | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/apps/ios/Shared/Views/Chat/ReverseList.swift b/apps/ios/Shared/Views/Chat/ReverseList.swift index 3bed52cef2..1cea99759b 100644 --- a/apps/ios/Shared/Views/Chat/ReverseList.swift +++ b/apps/ios/Shared/Views/Chat/ReverseList.swift @@ -48,10 +48,10 @@ struct ReverseList: 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 {