Skip to content

Commit

Permalink
fixup
Browse files Browse the repository at this point in the history
  • Loading branch information
kahayash authored and kahayash committed Jul 4, 2017
1 parent 7e3e3d2 commit 7adeeff
Showing 1 changed file with 2 additions and 0 deletions.
2 changes: 2 additions & 0 deletions PagingKit/PagingMenuViewController.swift
Original file line number Diff line number Diff line change
Expand Up @@ -144,7 +144,9 @@ public class PagingMenuViewController: UIViewController {

if let index = index {
collectionView.performBatchUpdates(nil) { [weak self] (_) in
guard let _self = self else { return }
self?.scroll(index: index, percent: 0, animated: false)
self?.delegate?.menuViewController(viewController: _self, didSelect: index, previousPage: 0)
}
}
}
Expand Down

0 comments on commit 7adeeff

Please sign in to comment.