Fixes taps sometimes not dismissing active callout view when remapping inputs

This commit is contained in:
Riley Testut 2022-10-19 17:07:56 -05:00
parent a2b6771715
commit 7d93470738

View File

@ -453,6 +453,12 @@ extension ControllerInputsViewController: UIGestureRecognizerDelegate
return self.activeCalloutView != nil
}
func gestureRecognizer(_ gestureRecognizer: UIGestureRecognizer, shouldRecognizeSimultaneouslyWith otherGestureRecognizer: UIGestureRecognizer) -> Bool
{
// Necessary to prevent other gestures (e.g. GameViewController's resumeEmulationIfNeeded() tap gesture) from cancelling tap.
return true
}
@IBAction private func handleTapGesture(_ tapGestureRecognizer: UITapGestureRecognizer)
{
self.updateActiveCalloutView(with: nil)