New issue
Advanced search Search tips

Issue 840947 link

Starred by 1 user

Issue metadata

Status: WontFix
Owner: ----
Closed: May 2018
Cc:
Components:
EstimatedDays: ----
NextAction: ----
OS: Android
Pri: 2
Type: Bug



Sign in to add a comment

android WebView overflow:auto trigger SwipeRefreshLayout on scroll up

Reported by newspape...@gmail.com, May 8 2018

Issue description

Steps to reproduce the problem:
When you load in WebView content with overflow:auto and it is surrounded with SwipeRefreshLayout, scroll down is working good, but scroll up triggers onRefresh of SwipeRefreshLayout.

--------------------------------------------------------------
 <android.support.v4.widget.SwipeRefreshLayout
    android:id="@+id/swiperefresh"
    android:layout_width="match_parent"
    android:layout_height="match_parent">

       <WebView
           android:id="@+id/webview"
           android:layout_width="fill_parent"
           android:layout_height="fill_parent" />
 </android.support.v4.widget.SwipeRefreshLayout>
--------------------------------------------------------------
@Override
protected void onCreate(Bundle savedInstanceState) {
    super.onCreate(savedInstanceState);
    browser = findViewById(R.id.webview);
    browser.loadUrl("https://odatv.com/mob.php"); //this is the url where the problem appears
}
---------------------------------------------------------------
In this site https://odatv.com/mob.php the problem appears only in mobile phones, in tablets it is working ok. I extend WebView to check scroll position but onScrollChanged in not called and onOverScrolled is called only on scroll horizontal.

How to make SwipeRefreshLayout work correctly in this case?

What is the expected behavior?

What went wrong?
scroll up triggers onRefresh of SwipeRefreshLayout regardless of the position of the scroll

Did this work before? No 

Does this work in other browsers? N/A

Chrome version: latest  Channel: stable
OS Version: WebView
Flash Version:
 

Comment 2 by e...@chromium.org, May 8 2018

Status: WontFix (was: Unconfirmed)
Hi, thanks for the report. Could you please file a bug with android [1] as SwipeRefreshLayout is an android concept and not something the chromium project has any control over?

Thanks

1: https://source.android.com/setup/contribute/report-bugs

Sign in to add a comment