Issue metadata
Sign in to add a comment
|
flingScroll() - too fast scroll when call flingScroll()
Reported by
sangk...@coupang.com,
May 4 2018
|
||||||||||||||||||||
Issue descriptionSteps to reproduce the problem: 1. call flingScroll() in android native code for android WebView 2. see how far it scrolls What is the expected behavior? Scroll the distance as the previous version (Chrome 65) What went wrong? It scrolls approximately 3x far in Chrome 66. Did this work before? Yes Chrome 65 Does this work in other browsers? N/A Chrome version: 66.0.3359.139 Channel: stable OS Version: OS X 10.13.4 Flash Version: The issue is when invoke WebView's API flingScroll(vx, vy) with a velocity value, Chrome v66 has a huge difference in scroll distance compare to the old versions, which creates an incompatible behavior with old WebView impls and other scrolling components like scrollView. Reproduced on Galaxy S7 and S8. For instance, calling flingScroll(0, 6000) leads to ~2000 pixel of vertical scrolling on old versions of Chrome, but it leads to ~5000 pixel scrolling on Chrome v66
,
May 7 2018
@sangkwon: Thanks for the report!! Could you please help us with a sample file where you're seeing this issue, OS, details of your device and if possible attach a screencast as well for further triaging of the issue? Thanks!!
,
May 8 2018
Hi @sandeepkumars, Thanks for your follow-up. I've created an apk to help demonstrate this issue, please find it attached.(source here https://github.com/LLLZHEN/chrome.flingscroll.demo) This app helps to call flingScroll() with a input, and prints out the scroll distance of WebView on the screen. As you can see the attached screenshots, the results are different between Chrome v65 and v66, run on Samsung Galaxy S7, android OS 7.0: v65 flingScroll(6000) -> scroll 1942 pixel v66 flingScroll(6000) -> scroll 13082 pixel Please help to look into which change cause this different. Thanks!
,
May 10 2018
Sahel, any chance browser side fling may be responsible here? It sounds like we're forgetting to apply the device pixel ratio of the device if I had to guess.
,
May 10 2018
I will check this. |
|||||||||||||||||||||
►
Sign in to add a comment |
|||||||||||||||||||||
Comment 1 by pnangunoori@chromium.org
, May 7 2018