mirror of
https://github.com/logseq/logseq.git
synced 2026-02-01 22:47:36 +00:00
enhance(mobile): weird viewport scroll for android
This commit is contained in:
@@ -4,6 +4,7 @@ import android.content.Intent;
|
||||
import android.os.Bundle;
|
||||
import android.view.View;
|
||||
import android.webkit.ValueCallback;
|
||||
import android.webkit.WebView;
|
||||
|
||||
import com.getcapacitor.BridgeActivity;
|
||||
|
||||
@@ -17,7 +18,10 @@ public class MainActivity extends BridgeActivity {
|
||||
registerPlugin(UILocal.class);
|
||||
|
||||
super.onCreate(savedInstanceState);
|
||||
this.bridge.getWebView().setOverScrollMode(View.OVER_SCROLL_NEVER);
|
||||
WebView webView = getBridge().getWebView();
|
||||
webView.setOverScrollMode(WebView.OVER_SCROLL_NEVER);
|
||||
webView.getSettings().setUseWideViewPort(true);
|
||||
webView.getSettings().setLoadWithOverviewMode(true);
|
||||
|
||||
new Timer().schedule(new TimerTask() {
|
||||
@Override
|
||||
|
||||
@@ -40,9 +40,6 @@ html.is-native-android {
|
||||
}
|
||||
}
|
||||
|
||||
#mobile-editor-toolbar {
|
||||
}
|
||||
|
||||
#main-container {
|
||||
overflow-y: visible;
|
||||
}
|
||||
@@ -96,6 +93,8 @@ html {
|
||||
body {
|
||||
@apply relative overflow-hidden;
|
||||
|
||||
min-height: unset !important;
|
||||
|
||||
.SheetWithDepth-stackSceneryContainer {
|
||||
@apply overflow-hidden;
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user