mirror of
https://github.com/ish-app/ish.git
synced 2026-05-28 21:10:35 +00:00
Disable scrolling on the web view in every possible way
This commit is contained in:
@@ -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;
|
||||
|
||||
@@ -7,6 +7,7 @@ html, body, #terminal {
|
||||
|
||||
body {
|
||||
background: transparent;
|
||||
overflow: hidden;
|
||||
}
|
||||
|
||||
#terminal {
|
||||
|
||||
Reference in New Issue
Block a user