From 13a807ba4fef0cb8c0c8c973c956e7b76f98829b Mon Sep 17 00:00:00 2001 From: Shadowfacts Date: Sat, 27 May 2023 14:59:26 -0700 Subject: [PATCH] Fix poll options view blocking context menu gesture Closes #387 --- Tusker/Views/Poll/PollOptionsView.swift | 6 +++++- 1 file changed, 5 insertions(+), 1 deletion(-) diff --git a/Tusker/Views/Poll/PollOptionsView.swift b/Tusker/Views/Poll/PollOptionsView.swift index cfba545e..f3d03a45 100644 --- a/Tusker/Views/Poll/PollOptionsView.swift +++ b/Tusker/Views/Poll/PollOptionsView.swift @@ -105,7 +105,11 @@ class PollOptionsView: UIControl { override func hitTest(_ point: CGPoint, with event: UIEvent?) -> UIView? { // don't let subviews receive touch events - return self + if isEnabled { + return self + } else { + return nil + } } // MARK: - UIControl