diff --git a/FolioReaderKit/FolioReaderCenter.swift b/FolioReaderKit/FolioReaderCenter.swift index 2fc0ce73c..04556748c 100644 --- a/FolioReaderKit/FolioReaderCenter.swift +++ b/FolioReaderKit/FolioReaderCenter.swift @@ -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) {