Sunday, May 10, 2015

Re: How to do smooth scrolling on browser back/next button on same-page navigation?

@Jens, thanks I think this is the problem:
Since your site should not have an element with id=section-1 
Interesting... wasn't aware of that, that is what I do and will probably be the problem .  I will change it, using the data- attribute as you suggest and let you know how it works.

I tried to search for the info about when/how the browser does add a History token, but can't find it. If you have a link, please share.

The Smooth scrolling is already done through (the same) History markers through click events/navigation (menu), so it's nice if it also happens in case of back/forward. It looks weird if it only works half...




--
You received this message because you are subscribed to the Google Groups "Google Web Toolkit" group.
To unsubscribe from this group and stop receiving emails from it, send an email to google-web-toolkit+unsubscribe@googlegroups.com.
To post to this group, send email to google-web-toolkit@googlegroups.com.
Visit this group at http://groups.google.com/group/google-web-toolkit.
For more options, visit https://groups.google.com/d/optout.

No comments:

Post a Comment