Rounding offset issue with zoom for dsf enabled on Android nexus 5x and pixel 2. |
|||||
Issue descriptionWe 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.
,
Oct 3
Sounds similar to: https://bugs.chromium.org/p/chromium/issues/detail?id=889476
,
Oct 5
,
Oct 5
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.
,
Oct 10
,
Dec 12
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 |
|||||
Comment 1 by sahel@chromium.org
, Oct 3