From 0c78b996969580de66f86dae12cae9c62914821b Mon Sep 17 00:00:00 2001 From: tshtrifork Date: Mon, 9 Nov 2015 10:55:07 +0100 Subject: [PATCH] Update PaperFoldView.m Should not receive touches when in slider --- PaperFold/PaperFold/PaperFold/PaperFoldView.m | 8 ++++++++ 1 file changed, 8 insertions(+) diff --git a/PaperFold/PaperFold/PaperFold/PaperFoldView.m b/PaperFold/PaperFold/PaperFold/PaperFoldView.m index 9a303e0..6c5455d 100644 --- a/PaperFold/PaperFold/PaperFold/PaperFoldView.m +++ b/PaperFold/PaperFold/PaperFold/PaperFoldView.m @@ -944,4 +944,12 @@ - (BOOL)gestureRecognizerShouldBegin:(UIGestureRecognizer *)gestureRecognizer } } +- (BOOL)gestureRecognizer:(UIGestureRecognizer *)gestureRecognizer shouldReceiveTouch:(UITouch *)touch { + if ([touch.view isKindOfClass:[UISlider class]]) { + // prevent recognizing touches on the slider + return NO; + } + return YES; +} + @end