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

make attachment to all links opt-in #19

Open
wants to merge 2 commits into
base: master
Choose a base branch
from

Conversation

jedwards1211
Copy link

The code that attaches to all links is throwing an exception on my site. Besides, I didn't want that automatically; I just wanted to be able to call smoothScroll programmatically. In my opinion attaching smooth scrolling to all links should be an opt-in feature, not the default.

@rbvea
Copy link

rbvea commented Dec 2, 2015

👍

@alicelieutier
Copy link
Owner

I kind of agree with this, but it is also quite a change to the usage of this library. I don't want people to update their version and find they need to change it, especially that it is easy to just include the script in a page without writing more code which was the original intent, for people who don't (want to) write any JS.

Instead, I can imagine a different import - maybe smoothscrollAPI.js - to only import the API without automatically attaching it to links.

What do you think?

@jedwards1211
Copy link
Author

That sounds fine to me!

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.

3 participants