mirror of
https://github.com/TelegramMessenger/Telegram-iOS.git
synced 2026-07-06 03:33:41 +02:00
Rich bubble: scrollToAnchor + getAnchorRect
Adds a base getAnchorRect on ChatMessageBubbleContentNode, the rich-bubble override (including titleHeight in details recursion), bubble-item forwarding to content nodes, ChatControllerInteraction.scrollToMessageIdWithAnchor, and a scrollToAnchor that lands the anchor at the top of the content area / its line. Threads anchor/scroll params through ChatController and related call sites.
This commit is contained in:
parent
f29af03cd7
commit
fdb2f369ec
26 changed files with 1148 additions and 100 deletions
|
|
@ -5064,7 +5064,7 @@ public final class ChatHistoryListNodeImpl: ListViewImpl, ChatHistoryNode, ChatH
|
|||
}
|
||||
}
|
||||
|
||||
func scrollToMessage(index: MessageIndex) {
|
||||
func scrollToMessage(index: MessageIndex, offset: CGFloat = 0.0) {
|
||||
self.appliedScrollToMessageId = nil
|
||||
self.scrollToMessageIdPromise.set(.single(index))
|
||||
}
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue