[app] Fix clampedY (#777)

* [app] Fix clampedY

* zoom 80%
This commit is contained in:
LoveSy 2021-06-25 18:04:46 +08:00 committed by GitHub
parent 2d907cb911
commit da3e026760
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
2 changed files with 2 additions and 1 deletions

View File

@ -155,6 +155,7 @@ public class RepoItemFragment extends BaseFragment implements RepoLoader.Listene
setting.setAllowFileAccess(false);
setting.setGeolocationEnabled(false);
setting.setCacheMode(WebSettings.LOAD_CACHE_ELSE_NETWORK);
setting.setTextZoom(80);
String body;
int nightModeFlags = getResources().getConfiguration().uiMode & Configuration.UI_MODE_NIGHT_MASK;
if (nightModeFlags == Configuration.UI_MODE_NIGHT_YES) {

View File

@ -42,7 +42,7 @@ public class ScrollWebView extends WebView {
@Override
protected void onOverScrolled(int scrollX, int scrollY, boolean clampedX, boolean clampedY) {
if (clampedX) {
if (clampedX || clampedY) {
var viewParent = findViewParentIfNeeds(this);
if (viewParent != null) viewParent.requestDisallowInterceptTouchEvent(false);
}