From 7dba8670712c19f5b003170e3e7d3326ab1e4930 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Burak=20Boduro=C4=9Flu?= <80620802+burakboduroglu@users.noreply.github.com> Date: Sun, 23 Aug 2026 23:04:37 +0300 Subject: [PATCH] Turn off the webview's own scrollbars The page hides scrollbars in CSS, but those rules cannot reach the ones Android draws over the webview itself, which is what still flashed down the right edge while scrolling. --- frontend | 2 +- .../app/src/main/java/co/hezarfen/app/MainActivity.kt | 6 ++++++ 2 files changed, 7 insertions(+), 1 deletion(-) diff --git a/frontend b/frontend index 76992e4..4448c06 160000 --- a/frontend +++ b/frontend @@ -1 +1 @@ -Subproject commit 76992e49645bfb81d882ee940179b1159cbcc04e +Subproject commit 4448c0633bc8af87f783f58976e79eae15f6fe2c diff --git a/src-tauri/gen/android/app/src/main/java/co/hezarfen/app/MainActivity.kt b/src-tauri/gen/android/app/src/main/java/co/hezarfen/app/MainActivity.kt index b4810d9..ca8a189 100644 --- a/src-tauri/gen/android/app/src/main/java/co/hezarfen/app/MainActivity.kt +++ b/src-tauri/gen/android/app/src/main/java/co/hezarfen/app/MainActivity.kt @@ -29,6 +29,12 @@ class MainActivity : TauriActivity() { // webview applies the insets itself. override fun onWebViewCreate(webView: WebView) { this.webView = webView + + // The page hides scrollbars in CSS, but those rules cannot reach the ones + // Android draws over the webview itself, which is what still flashes down + // the right edge while scrolling. + webView.isVerticalScrollBarEnabled = false + webView.isHorizontalScrollBarEnabled = false webView.addOnLayoutChangeListener { _, _, _, _, _, _, _, _, _ -> publishBottomInset() } // The first layout can land before the page has a document to set the // property on; this catches that case.