summaryrefslogtreecommitdiff
path: root/ios/Mobile/DocumentViewController.mm
diff options
context:
space:
mode:
Diffstat (limited to 'ios/Mobile/DocumentViewController.mm')
-rw-r--r--ios/Mobile/DocumentViewController.mm5
1 files changed, 5 insertions, 0 deletions
diff --git a/ios/Mobile/DocumentViewController.mm b/ios/Mobile/DocumentViewController.mm
index ff2d2f1ab..dc61ef23c 100644
--- a/ios/Mobile/DocumentViewController.mm
+++ b/ios/Mobile/DocumentViewController.mm
@@ -44,6 +44,11 @@
self.webView = [[WKWebView alloc] initWithFrame:CGRectZero configuration:configuration];
self.webView.translatesAutoresizingMaskIntoConstraints = 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.
+ self.webView.scrollView.scrollEnabled = NO;
+
[self.view addSubview:self.webView];
self.webView.navigationDelegate = self;