get rid of android rubber band effect

This commit is contained in:
Paul Miller
2023-11-06 13:35:28 -06:00
committed by Tony Giorgio
parent ac45f5e879
commit efb8ce2b86
3 changed files with 19 additions and 5 deletions

View File

@@ -1,5 +1,20 @@
package com.mutinywallet.mutinywallet;
import android.os.Bundle;
import android.webkit.WebView;
import com.getcapacitor.BridgeActivity;
public class MainActivity extends BridgeActivity {}
public class MainActivity extends BridgeActivity {
@Override
public void onCreate(Bundle savedInstanceState) {
super.onCreate(savedInstanceState);
}
@Override
public void onStart() {
super.onStart();
WebView webview = getBridge().getWebView();
webview.setOverScrollMode(WebView.OVER_SCROLL_NEVER);
}
}

View File

@@ -4,12 +4,11 @@
body {
@apply text-white;
@apply min-h-[100dvh] overflow-y-scroll overscroll-y-none safe-top safe-bottom disable-scrollbars;
@apply min-h-[100dvh] overflow-y-scroll safe-top safe-bottom disable-scrollbars;
}
html {
/* Fixed stops it from stretchy overscrolling (more app-like) */
@apply fixed inset-0 h-[100dvh] overflow-y-scroll overscroll-y-none disable-scrollbars;
@apply h-[100dvh];
@apply bg-neutral-900;
}

View File

@@ -1,3 +1,3 @@
export const DIALOG_POSITIONER = "fixed inset-0 h-[100dvh] z-50";
export const DIALOG_CONTENT =
"h-[100dvh] flex flex-col justify-between px-4 pt-4 pb-8 bg-m-grey-800 touch-manipulation select-none overflow-y-scroll disable-scrollbars";
"safe-top safe-bottom h-full flex flex-col justify-between px-4 pt-4 pb-8 bg-m-grey-800 touch-manipulation select-none overflow-y-scroll disable-scrollbars";