Disable scrolling on the web view in every possible way

This commit is contained in:
Theodore Dubois
2019-02-12 17:56:42 -08:00
parent 82ad92d010
commit 3af43ce2ee
2 changed files with 5 additions and 0 deletions
+4
View File
@@ -26,6 +26,10 @@
_terminal = terminal;
WKWebView *webView = terminal.webView;
webView.scrollView.scrollEnabled = NO;
webView.scrollView.delaysContentTouches = NO;
webView.scrollView.canCancelContentTouches = NO;
webView.scrollView.panGestureRecognizer.enabled = NO;
[webView.configuration.userContentController addScriptMessageHandler:self name:@"focus"];
webView.frame = self.frame;
self.opaque = webView.opaque = NO;
+1
View File
@@ -7,6 +7,7 @@ html, body, #terminal {
body {
background: transparent;
overflow: hidden;
}
#terminal {