TheFinestArtist / FinestWebView-Android

Beautiful and customizable Android Activity that shows web pages within an app.
https://finestwebview.web.app
2.32k stars 531 forks source link

Scrolling works one axis at a time #97

Closed wax911 closed 7 years ago

wax911 commented 7 years ago

Great work on the amazing library! one little problem I'm facing, might be something with my configuration. Not really sure, but If I visit a site like crunchyroll I can only scroll one axis at a time, meaning I can't get the scrolling to work with both X & Y axis I'd have to scroll left or right, stop and scroll up and down. Any help or suggestions would be welcome, my configuration

new FinestWebView.Builder(getContext()) .theme(R.style.FinestWebViewTheme) .toolbarScrollFlags(0) .statusBarColorRes(R.color.blackPrimaryDark_WebView) .toolbarColorRes(R.color.blackPrimary_WebView) .titleColorRes(R.color.finestWhite) .urlColorRes(R.color.blackPrimaryLight_WebView) .iconDefaultColorRes(R.color.finestWhite) .progressBarColorRes(R.color.finestWhite) .swipeRefreshColorRes(R.color.blackPrimaryDark_WebView) .menuSelector(R.drawable.selector_light_theme) .menuTextGravity(Gravity.CENTER_VERTICAL | Gravity.END) .menuTextPaddingRightRes(R.dimen.defaultMenuTextPaddingLeft) .dividerHeight(0) .setWebViewListener(mPresenter) .gradientDivider(false) .webViewLayoutAlgorithm(WebSettings.LayoutAlgorithm.NORMAL) //.setCustomAnimations(R.anim.slide_up, R.anim.hold, R.anim.hold, R.anim.slide_down) //.setCustomAnimations(R.anim.slide_left_in, R.anim.hold, R.anim.hold, R.anim.slide_right_out) .setCustomAnimations(R.anim.fade_in_fast, R.anim.fade_out_medium, R.anim.fade_in_medium, R.anim.fade_out_fast) .disableIconMenu(false).show();

wax911 commented 7 years ago

Sorry about that, I had not set the following!

.webViewUseWideViewPort(true) .webViewSupportZoom(true) .webViewBuiltInZoomControls(true)