New issue
Advanced search Search tips

Issue 891860 link

Starred by 2 users

Issue metadata

Status: Assigned
Owner:
Cc:
Components:
EstimatedDays: ----
NextAction: ----
OS: Android
Pri: 3
Type: Bug

Blocked on:
issue 414283



Sign in to add a comment

Rounding offset issue with zoom for dsf enabled on Android nexus 5x and pixel 2.

Project Member Reported by sahel@chromium.org, Oct 3

Issue description

We expect to have window.scrollY == 20 after running window.scrollTo(0, 20) but with kEnableUseZoomForDSF enabled on Android we get window.scrollY == 19.

Please note that the issue only happens on some android devices:
I tried Nexus 5x and pixel 2 devices and was able to reproduce the issue, but I could not do that on Nexus 5 or Nexus 6 devices.
 
Description: Show this description
Blocking: 737777
Components: Internals>Compositing>Scroll
Owner: eirage@chromium.org
Status: Assigned (was: Untriaged)
Sounds similar to:
https://bugs.chromium.org/p/chromium/issues/detail?id=889476
Labels: Hotlist-Consult
Blockedon: 414283
Cc: bokan@chromium.org
Hmmm, not sure if there is good way to fix this: scroll offset is truncated here: https://cs.chromium.org/chromium/src/third_party/blink/renderer/core/scroll/scrollable_area.cc?g=0&l=301
So when dsf=2.625, we have 20*2.625 = 52.5, and 52/2.625 = 19.8, which causing this issue.

FractionalScrollOffset isn't fully shipped yet, so we have rounded offset issue on desktop zoom such as crbug.com/890345.

Blocking: -737777
Mark this not blocking  issue 737777 
Components: -Internals>Compositing>Scroll Blink>Scroll
Labels: -Hotlist-Consult Hotlist-Polish
Based on #4 this looks like Blink>Scroll rather than composited scroll; please re-add component if I am mistaken.

Sign in to add a comment