ios/Mobile/DocumentViewController.mm | 1 + 1 file changed, 1 insertion(+)
New commits: commit 0e49800418d26c0a213638bc693b3d01aa58909e Author: Tor Lillqvist <[email protected]> AuthorDate: Fri Oct 4 14:45:05 2019 +0300 Commit: Tor Lillqvist <[email protected]> CommitDate: Sat Oct 5 11:41:18 2019 +0300 tdf#127942: Avoid the WKWebView popup with "Share...", "Add to Photos" etc Seems that setting allowsLinkPreview to NO for the WKWebView affects this functionality, too. Was just an educated guess, and it worked! Single-line fixes to what initially seems like a hard problem are the best. Change-Id: Ic88bf53b883d857338c0316188e079e6797a4d76 Reviewed-on: https://gerrit.libreoffice.org/80208 Reviewed-by: Tor Lillqvist <[email protected]> Tested-by: Tor Lillqvist <[email protected]> (cherry picked from commit c7e38e6348a98c0a6fcaf20876c57cb01d56f4cc) diff --git a/ios/Mobile/DocumentViewController.mm b/ios/Mobile/DocumentViewController.mm index 6f1891b35..183e57250 100644 --- a/ios/Mobile/DocumentViewController.mm +++ b/ios/Mobile/DocumentViewController.mm @@ -44,6 +44,7 @@ self.webView = [[WKWebView alloc] initWithFrame:CGRectZero configuration:configuration]; self.webView.translatesAutoresizingMaskIntoConstraints = NO; + self.webView.allowsLinkPreview = NO; // Prevent the WebView from scrolling. Sadly I couldn't figure out how to do it in the JS, // so the problem is still there when using Online from Mobile Safari. _______________________________________________ Libreoffice-commits mailing list [email protected] https://lists.freedesktop.org/mailman/listinfo/libreoffice-commits
