Skip to content
Open
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
Original file line number Diff line number Diff line change
Expand Up @@ -224,7 +224,7 @@ - (void)handlePanGesture:(UIPanGestureRecognizer *)gesture{
break;
}


case UIGestureRecognizerStateEnded:
case UIGestureRecognizerStateCancelled:
case UIGestureRecognizerStateFailed:
Expand Down Expand Up @@ -289,7 +289,7 @@ -(LSSwipeToDeleteDirection)deletionDirectionWithGestureRecogniser:(UIPanGestureR

if (escapeDistance > self.deletionDistanceTresholdValue && [self isTranslationInDeletionDirection:tranlastion]) {
direction = [self swipeToDeleteDirectionFromValue:tranlastion];
}else if (escapeVelocity > self.deletionVelocityTresholdValue && [self isVelocityInDeletionDirection:velocity]){
}else if (escapeVelocity > self.deletionVelocityTresholdValue && [self isVelocityInDeletionDirection:velocity] && escapeDistance > self.deletionDistanceTresholdValue){
direction = [self swipeToDeleteDirectionFromValue:tranlastion];
}

Expand Down Expand Up @@ -441,7 +441,7 @@ -(BOOL)isVelocityInDeletionDirection:(CGPoint)velocity{
if (userTriggerredSwipeToDeleteVelocityDirection == LSSwipeToDeleteDirectionNone) {
inDeletionDirection = NO;
}

return inDeletionDirection;
}

Expand Down