Skip to content

Commit

Permalink
Fix Horizonal Sliding Issues by only recogizing simultaneous gestures…
Browse files Browse the repository at this point in the history
… if the other gesture its the pan gesture (#32)
  • Loading branch information
TosinAF authored Jun 8, 2019
1 parent b0fb9e7 commit 0234d82
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion PanModal/Controller/PanModalPresentationController.swift
Original file line number Diff line number Diff line change
Expand Up @@ -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
}
}

Expand Down

0 comments on commit 0234d82

Please sign in to comment.