So if its so important to you to smooth scroll then you have to implement it yourself without using the native browser behavior. E.g. use any tag with data-scroll-id=section-1 attribute and search that element whenever you get a history change event for #section-1.
Since your site should not have an element with id=section-1 or an anchor with name=section-1 the browser won't jump to anything on its own. You would also need to trigger scrolling when the page gets (re)loaded as the browser won't do it anymore.
-- J.
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