Animate timeline article selection and scrolling when done via article swiping. Issue #1732

This commit is contained in:
Maurice Parker 2020-01-29 16:31:50 -07:00
parent 967410e0f5
commit c293bc3a12
1 changed files with 1 additions and 1 deletions

View File

@ -307,7 +307,7 @@ extension ArticleViewController: UIPageViewControllerDelegate {
func pageViewController(_ pageViewController: UIPageViewController, didFinishAnimating finished: Bool, previousViewControllers: [UIViewController], transitionCompleted completed: Bool) {
guard finished, completed else { return }
guard let article = currentWebViewController?.article else { return }
coordinator.selectArticle(article)
coordinator.selectArticle(article, animations: [.select, .scroll, .navigation])
articleExtractorButton.buttonState = currentWebViewController?.articleExtractorButtonState ?? .off
}