diff --git a/BWSwipeRevealCell/BWSwipeCell.swift b/BWSwipeRevealCell/BWSwipeCell.swift index 958839c..e25edea 100644 --- a/BWSwipeRevealCell/BWSwipeCell.swift +++ b/BWSwipeRevealCell/BWSwipeCell.swift @@ -143,17 +143,20 @@ public class BWSwipeCell:UITableViewCell { public func animateContentViewForPoint(point: CGPoint) { if (point.x > 0 && self.revealDirection == .Left) || (point.x < 0 && self.revealDirection == .Right) || self.revealDirection == .Both { self.contentView.frame = CGRectOffset(self.contentView.bounds, point.x, 0) + let previousState = state if point.x >= self.threshold { self.state = .PastThresholdLeft - self.delegate?.swipeCellDidPassThreshold?(self) } else if point.x < -self.threshold { self.state = .PastThresholdRight - self.delegate?.swipeCellDidPassThreshold?(self) } else { self.state = .Normal } + + if self.state != .Normal && self.state != previousState { + self.delegate?.swipeCellDidPassThreshold?(self) + } self.delegate?.swipeCellDidSwipe?(self) } else {