mirror of
https://github.com/Swiftgram/Telegram-iOS.git
synced 2025-12-24 07:05:35 +00:00
Add pinch-to-zoom for attached media
This commit is contained in:
@@ -1152,6 +1152,12 @@ public final class ChatMessageAttachedContentNode: ASDisplayNode {
|
||||
self.contentMedia?.removeFromSupernode()
|
||||
self.contentMedia = contentMedia
|
||||
|
||||
contentMedia.activatePinch = { [weak controllerInteraction] sourceNode in
|
||||
guard let controllerInteraction else {
|
||||
return
|
||||
}
|
||||
controllerInteraction.activateMessagePinch(sourceNode)
|
||||
}
|
||||
contentMedia.activateLocalContent = { [weak self] mode in
|
||||
guard let self else {
|
||||
return
|
||||
|
||||
Reference in New Issue
Block a user