Skip to content
This repository has been archived by the owner on Nov 26, 2020. It is now read-only.

fixed nil currentPage when swipe left for menu at cover page #3

Merged
merged 2 commits into from
Jul 10, 2015
Merged
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
4 changes: 2 additions & 2 deletions FolioReaderKit/FolioReaderCenter.swift
Original file line number Diff line number Diff line change
Expand Up @@ -248,12 +248,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