diff --git a/submodules/SparseItemGrid/Sources/SparseItemGrid.swift b/submodules/SparseItemGrid/Sources/SparseItemGrid.swift index 12b5caf095..8c5f6fdd1f 100644 --- a/submodules/SparseItemGrid/Sources/SparseItemGrid.swift +++ b/submodules/SparseItemGrid/Sources/SparseItemGrid.swift @@ -1015,6 +1015,10 @@ public final class SparseItemGrid: ASDisplayNode { guard let strongSelf = self else { return nil } + if let decelerationAnimator = strongSelf.decelerationAnimator { + strongSelf.decelerationAnimator = nil + decelerationAnimator.invalidate() + } strongSelf.items?.itemBinding.onBeginFastScrolling() return strongSelf.scrollView } diff --git a/submodules/SparseItemGrid/Sources/SparseItemGridScrollingArea.swift b/submodules/SparseItemGrid/Sources/SparseItemGridScrollingArea.swift index 71417a413b..20eadc11bb 100644 --- a/submodules/SparseItemGrid/Sources/SparseItemGridScrollingArea.swift +++ b/submodules/SparseItemGrid/Sources/SparseItemGridScrollingArea.swift @@ -1067,7 +1067,7 @@ public final class SparseItemGridScrollingArea: ASDisplayNode { //#if DEBUG //#else - Queue.mainQueue().after(2.0, { [weak self] in + Queue.mainQueue().after(5.0, { [weak self] in self?.dismissLineTooltip() }) //#endif