Fix isPinchGestureEnabled

This commit is contained in:
Ali 2021-04-10 00:27:33 +04:00
parent da4a9977d0
commit ac388c7da5
2 changed files with 3 additions and 1 deletions

View File

@ -152,7 +152,7 @@ public final class PinchSourceContainerNode: ASDisplayNode, UIGestureRecognizerD
fileprivate let gesture: PinchSourceGesture fileprivate let gesture: PinchSourceGesture
fileprivate var panGesture: UIPanGestureRecognizer? fileprivate var panGesture: UIPanGestureRecognizer?
public var isPinchGestureEnabled: Bool = false { public var isPinchGestureEnabled: Bool = true {
didSet { didSet {
if self.isPinchGestureEnabled != oldValue { if self.isPinchGestureEnabled != oldValue {
self.gesture.isEnabled = self.isPinchGestureEnabled self.gesture.isEnabled = self.isPinchGestureEnabled

View File

@ -1050,6 +1050,8 @@ final class ChatMessageInteractiveMediaNode: ASDisplayNode, GalleryItemTransitio
} }
strongSelf.updateStatus(animated: synchronousLoads) strongSelf.updateStatus(animated: synchronousLoads)
strongSelf.pinchContainerNode.isPinchGestureEnabled = !isSecretMedia
} }
}) })
}) })