Skip to content

Commit

Permalink
fix
Browse files Browse the repository at this point in the history
  • Loading branch information
Kazuhiro Hayashi committed Sep 5, 2017
1 parent 4918748 commit bd08468
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions PagingKit/PagingContentViewController.swift
Original file line number Diff line number Diff line change
Expand Up @@ -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()
Expand All @@ -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()
Expand Down

0 comments on commit bd08468

Please sign in to comment.