Fix Horizonal Sliding Issues by only recogizing simultaneous gestures if the other gesture its the pan gesture (#32)
This commit is contained in:
parent
b0fb9e7eed
commit
0234d82979
|
|
@ -826,7 +826,7 @@ extension PanModalPresentationController: UIGestureRecognizerDelegate {
|
|||
is a pan gesture recognizer
|
||||
*/
|
||||
public func gestureRecognizer(_ gestureRecognizer: UIGestureRecognizer, shouldRecognizeSimultaneouslyWith otherGestureRecognizer: UIGestureRecognizer) -> Bool {
|
||||
return otherGestureRecognizer.isKind(of: UIPanGestureRecognizer.self)
|
||||
return otherGestureRecognizer == panGestureRecognizer
|
||||
}
|
||||
}
|
||||
|
||||
|
|
|
|||
Loading…
Reference in New Issue