ios overscroll fixed

This commit is contained in:
Paul Miller
2023-11-06 17:01:21 -06:00
committed by Tony Giorgio
parent 0b2e3bdad3
commit cb32bec78c
2 changed files with 3 additions and 8 deletions

View File

@@ -13,6 +13,7 @@ class MyCustomViewController: CAPBridgeViewController {
super.viewDidLoad() super.viewDidLoad()
webView!.allowsBackForwardNavigationGestures = true webView!.allowsBackForwardNavigationGestures = true
webView!.scrollView.bounces = false webView!.scrollView.bounces = false
webView!.scrollView.alwaysBounceVertical = false
webView!.scrollView.showsVerticalScrollIndicator = false webView!.scrollView.showsVerticalScrollIndicator = false
} }
} }

View File

@@ -4,18 +4,12 @@
body { body {
@apply text-white; @apply text-white;
@apply min-h-[100dvh] overflow-y-scroll safe-top safe-bottom disable-scrollbars; @apply min-h-[100dvh] overflow-y-scroll overscroll-none safe-top safe-bottom disable-scrollbars;
} }
html { html {
@apply h-[100dvh]; @apply h-[100dvh] overscroll-none;
@apply bg-neutral-900; @apply bg-neutral-900;
--ion-safe-area-top: env(safe-area-inset-top);
overscroll-behavior-y: none;
}
@media (prefers-color-scheme: light) {
/* we don't support this but I want the browser to know I care */
} }
@media (prefers-color-scheme: light) { @media (prefers-color-scheme: light) {