I’m glad I’m not the only person trying to fix this. But wait, so the code worked for you? It doesn’t change my scroll position no matter what value I put for the window height. My console says x and y are undefined no matter what I do. Basically the same for the other code. scrollX and scrollY always remain as zero no matter what I do.
Related topics
| Topic | Replies | Views | Activity | |
|---|---|---|---|---|
| How to auto load a page to start at the bottom | 3 | 914 | July 11, 2021 | |
| How to make mobile slides start automatic on top, scroll to does not work | 5 | 476 | July 12, 2020 | |
| scrollTo doesn't work in mobile browsers | 5 | 878 | October 29, 2018 | |
| Load page then autoscroll to anchor. | 4 | 3078 | February 20, 2019 | |
| How can I get a vertical scroll position value? | 2 | 931 | August 18, 2021 |