From bd08468b1e475f76684f02fd9cc5557281b4b600 Mon Sep 17 00:00:00 2001 From: Kazuhiro Hayashi Date: Tue, 5 Sep 2017 16:08:17 +0900 Subject: [PATCH] fix --- PagingKit/PagingContentViewController.swift | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/PagingKit/PagingContentViewController.swift b/PagingKit/PagingContentViewController.swift index 2517261..a4f0cd0 100644 --- a/PagingKit/PagingContentViewController.swift +++ b/PagingKit/PagingContentViewController.swift @@ -194,7 +194,7 @@ extension PagingContentViewController: UIScrollViewDelegate { public func scrollViewDidEndDecelerating(_ scrollView: UIScrollView) { if isExplicityScrolling { leftSidePageIndex = Int(scrollView.contentOffset.x / scrollView.bounds.width) - delegate?.contentViewController?(viewController: self, didEndManualScrollOn: leftSidePageIndex) + delegate?.contentViewController(viewController: self, didEndManualScrollOn: leftSidePageIndex) } isExplicityScrolling = false loadPagesIfNeeded() @@ -205,7 +205,7 @@ extension PagingContentViewController: UIScrollViewDelegate { if isExplicityScrolling { leftSidePageIndex = Int(scrollView.contentOffset.x / scrollView.bounds.width) - delegate?.contentViewController?(viewController: self, didEndManualScrollOn: leftSidePageIndex) + delegate?.contentViewController(viewController: self, didEndManualScrollOn: leftSidePageIndex) } isExplicityScrolling = false loadPagesIfNeeded()