window.pageYOffset gives incorrect values when page zoomed on Chrome for Android
Reported by
ol1...@gmail.com,
Mar 2 2016
|
|||||
Issue descriptionChrome Version : 48.0.2564.95 URLs (if applicable) : google.com Worked well on : Chrome v 44.*: OK What steps will reproduce the problem? 1. Launch a website that is zoom enabled- for example: google.com on the latest version of Chrome on an Android mobile device version 5 or higher. 2. Zoom in the website whereas the viewport displays a scrolled position. 3. USB debug it using chrome on desktop with : chrome://inspect 4. Run window.pageYOffset or document.body.scrollTop in the console 5. scroll the page on the device and repeat step #4 What is the expected result? Get the accurate offset of scroll Y position What happens instead? Incorrect values - same result with different scroll positions. Please provide any additional information below. Attach a screenshot if possible.
,
Mar 7 2016
,
Mar 7 2016
window.scroll properties were made relative to the layout viewport in M48. The reason you're seeing 0 is because the layout viewport is not scrolled. As a test, try scrolling to the bottom of the page, and this value should no longer be 0. This change was reverted in M49 (see issue 571297 ). Can you verify that this is working in chrome beta?
,
Mar 7 2016
,
Mar 7 2016
Can you also verify the same for getBoundingClientRect in issue 591375 .
,
Mar 8 2016
First, thanks for the quick response. I just tested it on chrome beta and it is working well. Regarding getBoundingClientRect in issue 591375 , the issue still reproducing (and just noticed that it's status turned to won't fix) but at least for this I have a workaround.
,
Mar 8 2016
,
Apr 1 2016
|
|||||
►
Sign in to add a comment |
|||||
Comment 1 by kavvaru@chromium.org
, Mar 3 2016