Skip to content

Commit dde8261

Browse files
committed
fix match modal transition gesture conflict
1 parent cce6107 commit dde8261

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

Sources/Hero2/BuiltinTransitions/MatchModalTransition.swift

+1-1
Original file line numberDiff line numberDiff line change
@@ -174,7 +174,7 @@ extension MatchModalTransition: UIGestureRecognizerDelegate {
174174
}
175175

176176
open func gestureRecognizer(_ gestureRecognizer: UIGestureRecognizer, shouldBeRequiredToFailBy otherGestureRecognizer: UIGestureRecognizer) -> Bool {
177-
if otherGestureRecognizer is UIPanGestureRecognizer, let scrollView = otherGestureRecognizer.view as? UIScrollView {
177+
if otherGestureRecognizer is UIPanGestureRecognizer, let scrollView = otherGestureRecognizer.view as? UIScrollView, otherGestureRecognizer == scrollView.panGestureRecognizer {
178178
return scrollView.contentSize.width > scrollView.bounds.width
179179
? scrollView.contentOffset.x <= -scrollView.adjustedContentInset.left : scrollView.contentOffset.y <= -scrollView.adjustedContentInset.top
180180
}

0 commit comments

Comments
 (0)