By using this site, you agree to our updated Privacy Policy and our Terms of Use. Manage your Cookies Settings.
460,044 Members | 1,153 Online
Bytes IT Community
+ Ask a Question
Need help? Post your question and get tips & solutions from a community of 460,044 IT Pros & Developers. It's quick & easy.

jQuery LocalScroll hash problem - unexplained scrolling when page has Scrollbar

P: 59
I am using a jQuery script called LocalScroll, and I have a quick problem that needs fixing. The demo for the script is here: jQuery.LocalScroll - Regular Demo, and the documentation is here: Ariel Flesler: jQuery.LocalScroll. The Local Scroll script uses the toScroll and jQuery scripts to function.

I don't really understand what "hash" means, however the author in the documentation specified that if hash is set to true, the hash of the clicked link will appear on the address bar once the animation ends.

This is exactly the setting I want, but the author continues to write:

Note:This setting is not compatible with options like offset and margin, as the browser will natively scroll in the end.
If you use the option 'target'(to scroll an overflowed element) and the window has overflow, setting the hash will scroll the window as well. So my advice is:
only use 'hash' when scrolling the window.

This bit prevents me from accomplishing my final product. The problem in the demo occurs when there is a scrollbar on the page, which is accomplished by resizing the window. Is their any workaround using hash without having the window scroll?
Jan 10 '09 #1
Share this question for a faster answer!
Share on Google+

Post your reply

Sign in to post your reply or Sign up for a free account.