From fcde8aa63b1fa80333f3b1a5ca579d5e0df6627e Mon Sep 17 00:00:00 2001 From: Brendan Lee Date: Wed, 28 Sep 2016 10:03:09 -0400 Subject: [PATCH] Fix issue where tapping in the dimmed area doesn't dismiss the scrollview. --- Pulley.podspec | 2 +- PulleyLib/PulleyViewController.swift | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/Pulley.podspec b/Pulley.podspec index 896a67d..05b1cdf 100644 --- a/Pulley.podspec +++ b/Pulley.podspec @@ -8,7 +8,7 @@ Pod::Spec.new do |s| s.name = 'Pulley' - s.version = '1.2.1' + s.version = '1.2.2' s.summary = 'A library to imitate the iOS 10 Maps UI.' # This description is used to generate tags and improve search results. diff --git a/PulleyLib/PulleyViewController.swift b/PulleyLib/PulleyViewController.swift index f43d6c5..9206e6a 100644 --- a/PulleyLib/PulleyViewController.swift +++ b/PulleyLib/PulleyViewController.swift @@ -583,7 +583,7 @@ open class PulleyViewController: UIViewController, UIScrollViewDelegate, PulleyP { if gestureRecognizer == dimmingViewTapRecognizer { - if gestureRecognizer.state == .began + if gestureRecognizer.state == .ended { self.setDrawerPosition(position: .collapsed, animated: true) }