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

Fix horizontal scroll direction not working #305

Merged
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
2 changes: 1 addition & 1 deletion Source/FolioReaderKit.swift
Original file line number Diff line number Diff line change
Expand Up @@ -271,7 +271,7 @@ extension FolioReader {
/// Check the current scroll direction. Default .defaultVertical
open var currentScrollDirection: Int {
get {
guard let value = self.defaults.integer(forKey: kCurrentScrollDirection) as? Int else {
guard let value = self.defaults.value(forKey: kCurrentScrollDirection) as? Int else {
return FolioReaderScrollDirection.defaultVertical.rawValue
}

Expand Down