diff --git a/YMSwipeTableViewCell/PodFiles/UITableViewCell+Swipe.m b/YMSwipeTableViewCell/PodFiles/UITableViewCell+Swipe.m index f8484b0..d482b35 100644 --- a/YMSwipeTableViewCell/PodFiles/UITableViewCell+Swipe.m +++ b/YMSwipeTableViewCell/PodFiles/UITableViewCell+Swipe.m @@ -500,11 +500,11 @@ - (BOOL)gestureRecognizerShouldBegin:(UIGestureRecognizer *)gestureRecognizer if (gestureRecognizer == self.panGestureRecognizer) { CGPoint translation = [(UIPanGestureRecognizer *)gestureRecognizer translationInView:gestureRecognizer.view]; - if (translation.y == 0) { - if (translation.x > 0 && self.leftView == nil) { + if (translation.y == 0.f) { + if (translation.x >= 0.f && self.leftView == nil) { return NO; } - if (translation.x < 0 && self.rightView == nil) { + if (translation.x <= 0.f && self.rightView == nil) { return NO; } return YES;