Skip to content
This repository

Fixes #46. Ignore UISlider in gesture recognizer #117

Merged
merged 1 commit into from about 2 years ago

2 participants

Nick Zhebrun Tom Adriaenssen
Nick Zhebrun

No description provided.

Tom Adriaenssen Inferis merged commit acad9bc into from
Tom Adriaenssen Inferis closed this
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Showing 1 unique commit by 1 author.

Jul 06, 2012
Nick Zhebrun AnfiniL Fixes #46. Ignore UISlider in gesture recognizer b44d900
This page is out of date. Refresh to see the latest.

Showing 1 changed file with 5 additions and 0 deletions. Show diff stats Hide diff stats

  1. +5 0 ViewDeck/IIViewDeckController.m
5 ViewDeck/IIViewDeckController.m
@@ -1187,6 +1187,11 @@ - (BOOL)gestureRecognizerShouldBegin:(UIGestureRecognizer *)gestureRecognizer {
1187 1187 }
1188 1188
1189 1189 - (BOOL)gestureRecognizer:(UIGestureRecognizer *)gestureRecognizer shouldReceiveTouch:(UITouch *)touch {
  1190 + if([[touch view] isKindOfClass:[UISlider class]])
  1191 + {
  1192 + return NO;
  1193 + }
  1194 +
1190 1195 _panOrigin = self.slidingControllerView.frame.origin.x;
1191 1196 return YES;
1192 1197 }

Tip: You can add notes to lines in a file. Hover to the left of a line to make a note

Something went wrong with that request. Please try again.