Turn off the webview's own scrollbars
Browse files at this commit7dba8670712c19f5b003170e3e7d3326ab1e4930Parent: 7ec22c82 changed files +7 -1
frontendmodified+1 -1
| @@ -1 +1 @@ | ||
| 1 | -Subproject commit 76992e49645bfb81d882ee940179b1159cbcc04e | |
| 1 | +Subproject commit 4448c0633bc8af87f783f58976e79eae15f6fe2c |
src-tauri/gen/android/app/src/main/java/co/hezarfen/app/MainActivity.ktmodified+6 -0
| @@ -29,6 +29,12 @@ class MainActivity : TauriActivity() { | ||
| 29 | 29 | // webview applies the insets itself. |
| 30 | 30 | override fun onWebViewCreate(webView: WebView) { |
| 31 | 31 | this.webView = webView |
| 32 | + | |
| 33 | + // The page hides scrollbars in CSS, but those rules cannot reach the ones | |
| 34 | + // Android draws over the webview itself, which is what still flashes down | |
| 35 | + // the right edge while scrolling. | |
| 36 | + webView.isVerticalScrollBarEnabled = false | |
| 37 | + webView.isHorizontalScrollBarEnabled = false | |
| 32 | 38 | webView.addOnLayoutChangeListener { _, _, _, _, _, _, _, _, _ -> publishBottomInset() } |
| 33 | 39 | // The first layout can land before the page has a document to set the |
| 34 | 40 | // property on; this catches that case. |