Skip to content

Commit

Permalink
Allow context menu to work with right drag
Browse files Browse the repository at this point in the history
  • Loading branch information
levinli303 committed Nov 22, 2020
1 parent 32dc49f commit e216fd9
Showing 1 changed file with 0 additions and 2 deletions.
2 changes: 0 additions & 2 deletions MobileCelestia/Celestia/CelestiaInteractionController.swift
Original file line number Diff line number Diff line change
Expand Up @@ -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
}
}

Expand Down

0 comments on commit e216fd9

Please sign in to comment.