Not a top of the page but window.scrollY equals 0 on chrome mobile browser.
This is a late answer but this problem is still a recurrent one... For some obscure reason, Chrome on Android requires that you set "minimum-scale=1" in the "viewport" meta of your page. Not doing so causes the scrollY value to start increasing only after a good portion of the page is already scrolled (I'm assuming this is because without this setting, the viewport's height is somehow considered larger than the screen's height).
<meta name="viewport" content="width=device-width,initial-scale=1.0,minimum-scale=1">
I have fixed wrong scroll computations by the following css rule on mobile chrome
@media screen and (max-width: @screen-sm-max) {
html, body {
overflow: auto !important;
}
}
If you love us? You can donate to us via Paypal or buy me a coffee so we can maintain and grow! Thank you!
Donate Us With