-
Notifications
You must be signed in to change notification settings - Fork 143
Page is loading at the top of the window. Hash URLs rendered useless when going to links. Help! #32
Comments
Please include the unminified sources. It's impossible to debug otherwise. By the way it doesn't happen in Firefox for me, only Chrome. |
Prinzhorn, Sorry about that. I've updated both Skrollr and Skrollr-menu to unminified. Here is the file I'm calling the init from: |
This was introduced by ebb39bba#diff-14e11108e3fcf79bc01a46d211744495R141 I'm not sure though why I thought it would be a good idea to fall back to |
Reading through #3 again maybe http://stackoverflow.com/questions/10742422/prevent-browser-scroll-on-html5-history-popstate was the reason for that. Because if I remove that code, then Chrome will scroll to the anchor by itself, which is not desired especially on mobile where this would break the page... |
I'd need to take a closer look at this, but I'm busy. Maybe someone can play around with it and see what happens if the popstate is ignored, if it doesn't contain skrollr data. |
I am having the same exact issue, but i am not good enough to work out a solution. Hope someone can find a workaround soon! |
Same issue here: http://eudes.es/nova/test/index.html#organizar-evento |
Has anyone found a solution yet? |
If I'm on the root page "/" and click an anchor such as "/#link", the skrollr takes me there just fine. However, when I go to the actual /#link URL, it jumps back to the top of the page right after loading. Something in my skrollr.menu.init function seems to be doing the problem:
My project:
http://prbbi.com/services/pr/test/
So for example, if you go to this link, it jumps back to the top of the page after loading:
http://prbbi.com/services/pr/test/#reports
The text was updated successfully, but these errors were encountered: