mirror of
https://github.com/aljazceru/mutiny-web.git
synced 2026-02-10 00:34:20 +01:00
get rid of android rubber band effect
This commit is contained in:
committed by
Tony Giorgio
parent
ac45f5e879
commit
efb8ce2b86
@@ -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);
|
||||
}
|
||||
}
|
||||
|
||||
@@ -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;
|
||||
}
|
||||
|
||||
|
||||
@@ -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";
|
||||
|
||||
Reference in New Issue
Block a user