Skip to content

Commit

Permalink
Trim
Browse files Browse the repository at this point in the history
  • Loading branch information
changsanjiang committed Nov 22, 2017
1 parent f994ca5 commit aeda036
Show file tree
Hide file tree
Showing 2 changed files with 1 addition and 1 deletion.
Binary file not shown.
Original file line number Diff line number Diff line change
Expand Up @@ -335,7 +335,7 @@ - (UIPanGestureRecognizer *)sj_pan {

- (BOOL)gestureRecognizerShouldBegin:(UIPanGestureRecognizer *)gestureRecognizer {
CGPoint translate = [gestureRecognizer translationInView:self.view];
BOOL possible = translate.x != 0 && translate.y == 0;
BOOL possible = translate.x > 0 && translate.y == 0;
if ( possible ) return YES;
else return NO;
}
Expand Down

0 comments on commit aeda036

Please sign in to comment.