Static GitHub Issues

[2512] document.body.scrollTop always returns 0 in Safari

prev: Event before resources. DOMContentLoaded ?
next: only default layout styles rendered

Does anyone have an issue getting the scroll offset in Safari or iOS devices? This works perfectly in Firefox:

this.scrollPosition = document.body.scrollTop

but in Safari I'm always getting 0, no matter what. That happens only with Nuxt apps.

Thanks for your help!

<!--cmty--><!--cmty_prevent_hook--><div align="right"><sub><em>This question is available on <a href="https://nuxtjs.cmty.io">Nuxt.js</a> community (<a href="https://nuxtjs.cmty.io/nuxt/nuxt.js/issues/c2182">#c2182</a>)</em></sub></div>