Permalink
Browse files

Merge pull request #117 from AnfiniL/UISliderFix

Fixes #46. Ignore UISlider in gesture recognizer
  • Loading branch information...
Inferis committed Jul 6, 2012
2 parents d82d1f8 + b44d900 commit acad9bc751bcd00533f15d2d28cd66b4d0de6f60
Showing with 5 additions and 0 deletions.
  1. +5 −0 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;
}

0 comments on commit acad9bc

Please sign in to comment.