Skip to content

Commit

Permalink
Further fix for horizontal sliding + version bump
Browse files Browse the repository at this point in the history
  • Loading branch information
TosinAF committed Jun 13, 2019
1 parent 4206308 commit f9fedcb
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 4 deletions.
2 changes: 1 addition & 1 deletion PanModal.podspec
Original file line number Diff line number Diff line change
Expand Up @@ -8,7 +8,7 @@

Pod::Spec.new do |s|
s.name = 'PanModal'
s.version = '1.2.3'
s.version = '1.2.4'
s.summary = 'PanModal is an elegant and highly customizable presentation API for constructing bottom sheet modals on iOS.'

# This description is used to generate tags and improve search results.
Expand Down
6 changes: 3 additions & 3 deletions PanModal/Controller/PanModalPresentationController.swift
Original file line number Diff line number Diff line change
Expand Up @@ -822,11 +822,11 @@ extension PanModalPresentationController: UIGestureRecognizerDelegate {
}

/**
Allow simultaneous gesture recognizers only when the other gesture recognizer
is a pan gesture recognizer
Allow simultaneous gesture recognizers only when the other gesture recognizer's view
is the pan scrollable view
*/
public func gestureRecognizer(_ gestureRecognizer: UIGestureRecognizer, shouldRecognizeSimultaneouslyWith otherGestureRecognizer: UIGestureRecognizer) -> Bool {
return otherGestureRecognizer == panGestureRecognizer
return otherGestureRecognizer.view == presentable?.panScrollable
}
}

Expand Down

0 comments on commit f9fedcb

Please sign in to comment.