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.LocalScr oll - Regular Demo, and the documentation is here: Ariel Flesler: jQuery.LocalScr oll. 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?