WebDevStudios / Hash-Link-Scroll-Offset

Offset the scroll position of anchored links. Handy if you have a sticky header that covers linked material.
14 stars 5 forks source link

Need class to disable for specific links #1

Closed billerickson closed 9 years ago

billerickson commented 9 years ago

I'm using links to navigate a jQuery tabbed area ( screenshot: http://cl.ly/image/2X0h35271x3L ). When using this plugin, clicking on a tab moves the browser up so the tabbed area gets further and further.

I added a class of .no-scroll to those links, then made the following modification to the plugin's JS file which fixed it: https://www.diffchecker.com/8fcfj5vt

jtsternberg commented 9 years ago

Great idea, thanks @billerickson.