Shared media scrolling fixes

This commit is contained in:
Ali 2021-10-29 15:33:45 +04:00
parent 03a42480b1
commit b4317011e5
2 changed files with 5 additions and 1 deletions

View File

@ -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
}

View File

@ -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