mirror of
https://github.com/Ranchero-Software/NetNewsWire
synced 2025-08-12 06:26:36 +00:00
Implement scrollOrGoToNextUnread.
This commit is contained in:
@@ -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)
|
||||
}
|
||||
}
|
||||
|
||||
|
||||
|
||||
Reference in New Issue
Block a user