Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Add an option to control where within an element the page scrolls to #6

Open
wants to merge 1 commit into
base: master
Choose a base branch
from

Conversation

zachnagatani
Copy link

I added this option as scrollOffset. It will also default to 0, like offset.

I was having trouble using this plugin because I needed an offset to control when my active class was added, but then the scroll wouldn't move to the correct position. Adding this extra option allows for control over both, separately.

@cornelRaiu
Copy link

Yup. This should be pulled in the master branch. Had to add it myself before seeing this pull request and did it in the exact same way.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants