Skip to content

HTTPS clone URL

Subversion checkout URL

You can clone with
or
.
Download ZIP
Browse files

Merge pull request #117 from AnfiniL/UISliderFix

Fixes #46. Ignore UISlider in gesture recognizer
  • Loading branch information...
commit acad9bc751bcd00533f15d2d28cd66b4d0de6f60 2 parents d82d1f8 + b44d900
@Inferis authored
Showing with 5 additions and 0 deletions.
  1. +5 −0 ViewDeck/IIViewDeckController.m
View
5 ViewDeck/IIViewDeckController.m
@@ -1187,6 +1187,11 @@ - (BOOL)gestureRecognizerShouldBegin:(UIGestureRecognizer *)gestureRecognizer {
}
- (BOOL)gestureRecognizer:(UIGestureRecognizer *)gestureRecognizer shouldReceiveTouch:(UITouch *)touch {
+ if([[touch view] isKindOfClass:[UISlider class]])
+ {
+ return NO;
+ }
+
_panOrigin = self.slidingControllerView.frame.origin.x;
return YES;
}
Please sign in to comment.
Something went wrong with that request. Please try again.