New issue
Advanced search Search tips
Note: Color blocks (like or ) mean that a user may not be available. Tooltip shows the reason.

Issue 758495 link

Starred by 1 user

Issue metadata

Status: Duplicate
Merged: issue 760425
Owner:
Email to this user bounced
Closed: Aug 2017
Cc:
EstimatedDays: ----
NextAction: ----
OS: Chrome
Pri: 2
Type: Bug



Sign in to add a comment

scrollTop value is wrong when CrOS is in high dpi mode.

Project Member Reported by chungsheng@google.com, Aug 24 2017

Issue description

Chrome Version: 62.0.3195.0
OS: CrOS

What steps will reproduce the problem?
(1) Find a high dpi chrome book (cave), set its dpi to maybe 2:1.
(2) Open a websit (ex: google.com), open JS console and run:
    $('body').style.height = '10000px'
(3) Then set the scrollTop value:
    $('html').scrollTop = 2323

What is the expected result?
The page scrolled and scrollTop become 2323.

What happens instead?
scrollTop become 2322.39999.... ()

 

Comment 1 by vovoy@chromium.org, Aug 29 2017

scrollTop is OK on caroline Cros: 9885.0.0 Chrome: 62.0.3197.0

Comment 2 by vovoy@chromium.org, Aug 29 2017

Tested on cave Cros: 9885.0.0 Chrome: 62.0.3197.0,
This issue happened when resolution is set to 1536 x 864.
scrollTop is OK on other resolutions (960x540, 1200x675, 1920x1080, 2400x1350)

Comment 3 by vovoy@chromium.org, Aug 29 2017

this may be related to ScrollTopLeftInterop.
https://groups.google.com/a/chromium.org/forum/#!msg/blink-dev/X64Sg16RhT4/6ZiW7Dt8CAAJ

see comments in https://bugs.chromium.org/p/chromium/issues/detail?id=737633#c5
"Really you should be using document.scrollingElement to be told what the scrolling element is. This attribute was added for interop ability."

using document.scrollingElement may solve this interop issue?

Comment 4 by vovoy@chromium.org, Aug 29 2017

Labels: -Pri-1 Pri-2
I think it is not the same problem because the problem is not about scrolling wrong element.
The problem is we scroll the element but the position of the scrollbar become a strange value.
Mergedinto: 760425
Status: Duplicate (was: Available)

Sign in to add a comment