Animate timeline article selection and scrolling when done via article swiping. Issue #1732
This commit is contained in:
parent
967410e0f5
commit
c293bc3a12
|
@ -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
|
||||
}
|
||||
|
||||
|
|
Loading…
Reference in New Issue