Fixes taps sometimes not dismissing active callout view when remapping inputs
This commit is contained in:
parent
a2b6771715
commit
7d93470738
@ -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)
|
||||
|
||||
Loading…
Reference in New Issue
Block a user