Permalink
Browse files

Fixes #46. Ignore UISlider in gesture recognizer

  • Loading branch information...
1 parent d82d1f8 commit b44d90027f5edaea57ad06208e371bc0d41bdab1 @anfinil committed Jul 6, 2012
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;
}

0 comments on commit b44d900

Please sign in to comment.