Fix context menu action selection

This commit is contained in:
Peter 2019-09-07 00:03:47 +04:00
parent c5693f06b3
commit d36238b687

View File

@ -308,11 +308,11 @@ private final class ContextControllerNode: ViewControllerTracingNode, UIScrollVi
} }
} }
} }
gesture.externalEnded = { [weak self, weak recognizer] viewAndPoint in gesture.externalEnded = { [weak self, weak gesture] viewAndPoint in
guard let strongSelf = self, let recognizer = recognizer else { guard let strongSelf = self, let gesture = gesture else {
return return
} }
recognizer.externalUpdated = nil gesture.externalUpdated = nil
if strongSelf.didMoveFromInitialGesturePoint { if strongSelf.didMoveFromInitialGesturePoint {
if let (_, _) = viewAndPoint { if let (_, _) = viewAndPoint {
if let highlightedActionNode = strongSelf.highlightedActionNode { if let highlightedActionNode = strongSelf.highlightedActionNode {