mirror of
https://github.com/Swiftgram/Telegram-iOS.git
synced 2025-08-02 00:17:02 +00:00
Fix jump
This commit is contained in:
parent
88ecedba25
commit
b6d56a3c81
@ -3118,6 +3118,7 @@ public class ChatListControllerImpl: TelegramBaseController, ChatListController
|
|||||||
isReorderingTabs: .single(false),
|
isReorderingTabs: .single(false),
|
||||||
storyPostingAvailable: .single(false)
|
storyPostingAvailable: .single(false)
|
||||||
)
|
)
|
||||||
|
|
||||||
self.pendingSecondaryContext = pendingSecondaryContext
|
self.pendingSecondaryContext = pendingSecondaryContext
|
||||||
let _ = (pendingSecondaryContext.ready.get()
|
let _ = (pendingSecondaryContext.ready.get()
|
||||||
|> filter { $0 }
|
|> filter { $0 }
|
||||||
|
@ -2640,6 +2640,13 @@ final class ChatListControllerNode: ASDisplayNode, UIGestureRecognizerDelegate {
|
|||||||
if let _ = self.containerLayout {
|
if let _ = self.containerLayout {
|
||||||
let transition: ContainedViewLayoutTransition = .animated(duration: 0.5, curve: .spring)
|
let transition: ContainedViewLayoutTransition = .animated(duration: 0.5, curve: .spring)
|
||||||
|
|
||||||
|
if let contentOffset = self.mainContainerNode.contentOffset, case let .known(offset) = contentOffset, offset < 0.0 {
|
||||||
|
if let containerLayout = self.containerLayout {
|
||||||
|
self.updateNavigationScrolling(navigationHeight: containerLayout.navigationBarHeight, transition: transition)
|
||||||
|
self.mainContainerNode.scrollToTop(animated: true, adjustForTempInset: false)
|
||||||
|
}
|
||||||
|
}
|
||||||
|
|
||||||
if let previousInlineStackContainerNode {
|
if let previousInlineStackContainerNode {
|
||||||
transition.updatePosition(node: previousInlineStackContainerNode, position: CGPoint(x: previousInlineStackContainerNode.position.x + previousInlineStackContainerNode.bounds.width + UIScreenPixel, y: previousInlineStackContainerNode.position.y), completion: { [weak previousInlineStackContainerNode] _ in
|
transition.updatePosition(node: previousInlineStackContainerNode, position: CGPoint(x: previousInlineStackContainerNode.position.x + previousInlineStackContainerNode.bounds.width + UIScreenPixel, y: previousInlineStackContainerNode.position.y), completion: { [weak previousInlineStackContainerNode] _ in
|
||||||
previousInlineStackContainerNode?.removeFromSupernode()
|
previousInlineStackContainerNode?.removeFromSupernode()
|
||||||
|
Loading…
x
Reference in New Issue
Block a user