Jump to content
Search Community

scroll bar not reset on refresh

GrumpyDevoloper test
Moderator Tag

Recommended Posts

1 hour ago, GreenSock said:

Please make sure you're using the latest version, and if that still doesn't work, try adding this: 

 

window.addEventListener("load", () => {
  ScrollSmoother.get().scrollTop(window.pageYOffset);
  window.history.scrollRestoration = "auto";
});

Does that help at all? 

it helped some for now when i refresh the page it refreshes, but wont scroll on top like start position it stays on the same position as it was before i mean page and scrollbar is same position on refresh. previos was scrollbra stays same, but page goes at start astleast this is some improvments. will try to make demo or send public link on website today or tomorrow for code

Link to comment
Share on other sites

tryed to make pen demo, but i guess i have too many files etc on page so it was so bad everything was so messed up,

 

decided to copy the page on githup with all page files minus club file smoothscroller so that needs to put active to see total effect on page.
hope this helps even little even it is little more hassle to you. oh nav files i took off too so it is just 1 page

https://github.com/GrumpyDevoloper/debugging

 

pushed website live today since deadline was coming it is working, but not perfect yet, but i have time to fix issues and debug it more on the go

https://www.grumpydevoloper.com/

Link to comment
Share on other sites

Create an account or sign in to comment

You need to be a member in order to leave a comment

Create an account

Sign up for a new account in our community. It's easy!

Register a new account

Sign in

Already have an account? Sign in here.

Sign In Now
  • Recently Browsing   0 members

    • No registered users viewing this page.
×
×
  • Create New...