diff --git a/NYTPhotoViewer/NYTPhotoDismissalInteractionController.m b/NYTPhotoViewer/NYTPhotoDismissalInteractionController.m index 433f51c9..d8c9f14a 100644 --- a/NYTPhotoViewer/NYTPhotoDismissalInteractionController.m +++ b/NYTPhotoViewer/NYTPhotoDismissalInteractionController.m @@ -35,7 +35,7 @@ - (void)didPanWithPanGestureRecognizer:(UIPanGestureRecognizer *)panGestureRecog CGFloat backgroundAlpha = [self backgroundAlphaForPanningWithVerticalDelta:verticalDelta]; fromView.backgroundColor = [fromView.backgroundColor colorWithAlphaComponent:backgroundAlpha]; - if (panGestureRecognizer.state == UIGestureRecognizerStateEnded) { + if (panGestureRecognizer.state == UIGestureRecognizerStateEnded || panGestureRecognizer.state == UIGestureRecognizerStateCancelled) { [self finishPanWithPanGestureRecognizer:panGestureRecognizer verticalDelta:verticalDelta viewToPan:viewToPan anchorPoint:anchorPoint]; } }