alicelieutier/smoothScroll

Is there way option to specify a global offset or should an API call back be used for this?

Closed this issue · 1 comments

Is there way option to specify a global offset or should an API call back be used for this?

Sorry I never answered this before. There is no good way to do this now.
I guess the easiest would be to use the getTop function (you can copy it in your code) and then use the smoothScroll function with your offset + the top of the element you are looking for.

You can also add this as a pull request if you want.