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

Commit

Permalink
Adjusting indentation for #12 fix
Browse files Browse the repository at this point in the history
  • Loading branch information
kjantzer committed Dec 31, 2015
1 parent 9f1da67 commit 01ab99f
Showing 1 changed file with 12 additions and 12 deletions.
24 changes: 12 additions & 12 deletions Source/FolioReaderPage.swift
Original file line number Diff line number Diff line change
Expand Up @@ -208,19 +208,19 @@ class FolioReaderPage: UICollectionViewCell, UIWebViewDelegate, UIGestureRecogni

let selected = webView.js("getSelectedText()")

if selected == nil || selected!.characters.count == 0 {
let seconds = 0.4
let delay = seconds * Double(NSEC_PER_SEC) // nanoseconds per seconds
let dispatchTime = dispatch_time(DISPATCH_TIME_NOW, Int64(delay))
if selected == nil || selected!.characters.count == 0 {
let seconds = 0.4
let delay = seconds * Double(NSEC_PER_SEC) // nanoseconds per seconds
let dispatchTime = dispatch_time(DISPATCH_TIME_NOW, Int64(delay))

dispatch_after(dispatchTime, dispatch_get_main_queue(), {

dispatch_after(dispatchTime, dispatch_get_main_queue(), {

if self.shouldShowBar && !menuIsVisibleRef {
FolioReader.sharedInstance.readerCenter.toggleBars()
}
self.shouldShowBar = true
})
}
if self.shouldShowBar && !menuIsVisibleRef {
FolioReader.sharedInstance.readerCenter.toggleBars()
}
self.shouldShowBar = true
})
}
} else if readerConfig.shouldHideNavigationOnTap == true {
FolioReader.sharedInstance.readerCenter.hideBars()
}
Expand Down

0 comments on commit 01ab99f

Please sign in to comment.