From d36238b687359d407c5a53b35590d3b39d1a4b72 Mon Sep 17 00:00:00 2001 From: Peter <> Date: Sat, 7 Sep 2019 00:03:47 +0400 Subject: [PATCH] Fix context menu action selection --- submodules/ContextUI/Sources/ContextController.swift | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/submodules/ContextUI/Sources/ContextController.swift b/submodules/ContextUI/Sources/ContextController.swift index 9d4a548041..851071299c 100644 --- a/submodules/ContextUI/Sources/ContextController.swift +++ b/submodules/ContextUI/Sources/ContextController.swift @@ -308,11 +308,11 @@ private final class ContextControllerNode: ViewControllerTracingNode, UIScrollVi } } } - gesture.externalEnded = { [weak self, weak recognizer] viewAndPoint in - guard let strongSelf = self, let recognizer = recognizer else { + gesture.externalEnded = { [weak self, weak gesture] viewAndPoint in + guard let strongSelf = self, let gesture = gesture else { return } - recognizer.externalUpdated = nil + gesture.externalUpdated = nil if strongSelf.didMoveFromInitialGesturePoint { if let (_, _) = viewAndPoint { if let highlightedActionNode = strongSelf.highlightedActionNode {