Skip to content

Commit

Permalink
Merge pull request FolioReader#2 from katopz/master
Browse files Browse the repository at this point in the history
fixed nil currentPage when swipe left for menu at cover page
  • Loading branch information
hebertialmeida committed Jul 10, 2015
2 parents 65d374a + d6e5b16 commit 5cb72e3
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions FolioReaderKit/FolioReaderCenter.swift
Original file line number Diff line number Diff line change
Expand Up @@ -243,12 +243,12 @@ class FolioReaderCenter: UIViewController, UICollectionViewDelegate, UICollectio

func container(didExpandLeftPanel sidePanel: FolioReaderSidePanel) {
collectionView.scrollEnabled = false
currentPage.webView.scrollView.scrollEnabled = false
currentPage?.webView.scrollView.scrollEnabled = false
}

func container(didCollapseLeftPanel sidePanel: FolioReaderSidePanel) {
collectionView.scrollEnabled = true
currentPage.webView.scrollView.scrollEnabled = true
currentPage?.webView.scrollView.scrollEnabled = true
}

func container(sidePanel: FolioReaderSidePanel, didSelectRowAtIndexPath indexPath: NSIndexPath, withTocReference reference: FRTocReference) {
Expand Down

0 comments on commit 5cb72e3

Please sign in to comment.