This commit is contained in:
Brent Simmons committed 2026-11-12 13:48:46 -08:00
commit 90aaf2e632
15 files changed
+157 -17

No files matched your search

+13 -1
View File
@@ -120,6 +120,9 @@ final class ArticleViewController: UIViewController {
override var keyCommands: [UIKeyCommand]? {
return keyboardManager.keyCommands
}
override var canBecomeFirstResponder: Bool {
true
}
override func viewDidLoad() {
super.viewDidLoad()
@@ -412,10 +415,19 @@ final class ArticleViewController: UIViewController {
coordinator.navigateToTimeline()
}
@objc func scrollLineDown(_ sender: Any?) {
currentWebViewController?.scrollLineDown()
}
@objc func scrollLineUp(_ sender: Any?) {
currentWebViewController?.scrollLineUp()
}
// MARK: API
// Focus this view controller rather than the web view, since the web view is replaced on each article change.
func focus() {
currentWebViewController?.focus()
becomeFirstResponder()
}
func canScrollDown() -> Bool {