Implement scrollOrGoToNextUnread.

This commit is contained in:
Brent Simmons
2017-12-20 13:39:31 -08:00
parent 6879c172c2
commit 85e0a9739d
2 changed files with 73 additions and 9 deletions

View File

@@ -122,16 +122,14 @@ class MainWindowController : NSWindowController, NSUserInterfaceValidations {
@IBAction func scrollOrGoToNextUnread(_ sender: Any?) {
// guard let detailViewController = detailViewController else {
// return
// }
//
// if detailViewController.canScrollWebView() {
// detailViewController.scrollPageDown(sender)
// return
// }
guard let detailViewController = detailViewController else {
return
}
nextUnread(sender)
detailViewController.canScrollDown { (canScroll) in
canScroll ? detailViewController.scrollPageDown(sender) : self.nextUnread(sender)
}
}