Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Fix .md files scrolling being stuck when opening windows #3117

Merged
merged 1 commit into from
Oct 21, 2024
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
Original file line number Diff line number Diff line change
Expand Up @@ -52,7 +52,7 @@
config.websiteDataStore = WKWebsiteDataStore.nonPersistent()
let contentController = config.userContentController
contentController.add(self, name: "DirectEditingMobileInterface")
// FIXME: ONLYOFFICE Due to the WK Shared Workers issue the editors cannot be opened on the devices with iOS 16.1.

Check warning on line 55 in iOSClient/Viewer/NCViewerNextcloudText/NCViewerNextcloudText.swift

View workflow job for this annotation

GitHub Actions / Lint

Todo Violation: FIXMEs should be resolved (ONLYOFFICE Due to the WK Share...) (todo)
if editor == NCGlobal.shared.editorOnlyoffice {
let dropSharedWorkersScript = WKUserScript(source: "delete window.SharedWorker;", injectionTime: WKUserScriptInjectionTime.atDocumentStart, forMainFrameOnly: false)
config.userContentController.addUserScript(dropSharedWorkersScript)
Expand All @@ -60,6 +60,7 @@
webView = WKWebView(frame: CGRect.zero, configuration: config)
webView.navigationDelegate = self
webView.uiDelegate = self
webView.scrollView.isScrollEnabled = false
view.addSubview(webView)

webView.translatesAutoresizingMaskIntoConstraints = false
Expand Down
Loading