From f9fedcb597e8e80b4c2b2d4f13be7e8e47a0aaa5 Mon Sep 17 00:00:00 2001 From: Tosin Afolabi Date: Wed, 12 Jun 2019 20:50:49 -0700 Subject: [PATCH] Further fix for horizontal sliding + version bump --- PanModal.podspec | 2 +- PanModal/Controller/PanModalPresentationController.swift | 6 +++--- 2 files changed, 4 insertions(+), 4 deletions(-) diff --git a/PanModal.podspec b/PanModal.podspec index 9f01970b..03701ab6 100644 --- a/PanModal.podspec +++ b/PanModal.podspec @@ -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. diff --git a/PanModal/Controller/PanModalPresentationController.swift b/PanModal/Controller/PanModalPresentationController.swift index 68f23190..992b1cf9 100644 --- a/PanModal/Controller/PanModalPresentationController.swift +++ b/PanModal/Controller/PanModalPresentationController.swift @@ -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 } }