From e216fd9bef4c6f9e0e305d27fad4bb63d0bd2cc7 Mon Sep 17 00:00:00 2001 From: Levin Li Date: Sun, 22 Nov 2020 14:55:36 +0800 Subject: [PATCH] Allow context menu to work with right drag --- MobileCelestia/Celestia/CelestiaInteractionController.swift | 2 -- 1 file changed, 2 deletions(-) diff --git a/MobileCelestia/Celestia/CelestiaInteractionController.swift b/MobileCelestia/Celestia/CelestiaInteractionController.swift index ae9f16f0..73bd5c8e 100644 --- a/MobileCelestia/Celestia/CelestiaInteractionController.swift +++ b/MobileCelestia/Celestia/CelestiaInteractionController.swift @@ -339,11 +339,9 @@ extension CelestiaInteractionController { targetInteractionView.addInteraction(UIContextMenuInteraction(delegate: self)) } - #if targetEnvironment(macCatalyst) if let clickGesture = targetInteractionView.gestureRecognizers?.filter({ String(cString: object_getClassName($0)) == "_UISecondaryClickDriverGestureRecognizer" }).first { clickGesture.require(toFail: pan1) } - #endif } }