diff --git a/Source/FolioReaderFontsMenu.swift b/Source/FolioReaderFontsMenu.swift index ceff7e2d0..6fdfb18ee 100644 --- a/Source/FolioReaderFontsMenu.swift +++ b/Source/FolioReaderFontsMenu.swift @@ -243,7 +243,12 @@ class FolioReaderFontsMenu: UIViewController, SMSegmentViewDelegate, UIGestureRe scrollDirection = readerConfig.scrollDirection } - layoutDirection.selectSegmentAtIndex(scrollDirection?.rawValue ?? 0) + switch scrollDirection ?? .vertical { + case .vertical, .defaultVertical: + layoutDirection.selectSegmentAtIndex(FolioReaderScrollDirection.vertical.rawValue) + case .horizontal, .horizontalWithVerticalContent: + layoutDirection.selectSegmentAtIndex(FolioReaderScrollDirection.horizontal.rawValue) + } menuView.addSubview(layoutDirection) }