Issue metadata
Sign in to add a comment
|
scrollTop value is wrong when CrOS is in high dpi mode. |
||||||||||||||||||||||
Issue descriptionChrome 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.... ()
,
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)
,
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?
,
Aug 29 2017
,
Aug 30 2017
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.
,
Aug 30 2017
|
|||||||||||||||||||||||
►
Sign in to add a comment |
|||||||||||||||||||||||
Comment 1 by vovoy@chromium.org
, Aug 29 2017