mirror of
https://github.com/Swiftgram/Telegram-iOS.git
synced 2025-12-22 22:25:57 +00:00
Message animation improvements
This commit is contained in:
@@ -4087,6 +4087,8 @@ public final class ChatControllerImpl: TelegramBaseController, ChatController, G
|
||||
guard let strongSelf = self else {
|
||||
return
|
||||
}
|
||||
|
||||
//print("didScrollWithOffset offset: \(offset), itemNode: \(String(describing: itemNode))")
|
||||
|
||||
if offset > 0.0 {
|
||||
if var scrolledToMessageIdValue = strongSelf.scrolledToMessageIdValue {
|
||||
@@ -4109,6 +4111,13 @@ public final class ChatControllerImpl: TelegramBaseController, ChatController, G
|
||||
|
||||
strongSelf.chatDisplayNode.messageTransitionNode.addExternalOffset(offset: offset, transition: transition, itemNode: itemNode)
|
||||
}
|
||||
|
||||
self.chatDisplayNode.historyNode.addContentOffset = { [weak self] offset, itemNode in
|
||||
guard let strongSelf = self else {
|
||||
return
|
||||
}
|
||||
strongSelf.chatDisplayNode.messageTransitionNode.addContentOffset(offset: offset, itemNode: itemNode)
|
||||
}
|
||||
|
||||
if case .pinnedMessages = self.presentationInterfaceState.subject {
|
||||
self.chatDisplayNode.historyNode.setLoadStateUpdated({ [weak self] state, _ in
|
||||
|
||||
Reference in New Issue
Block a user