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

"Excluded" option #18

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

"Excluded" option #18

wants to merge 2 commits into from

Conversation

TonyBogdanov
Copy link

I've noticed there's an "excluded" option set to an empty string and then never used.

I'm not really sure what was the purpose of it, but I found myself in the need of a way to specify elements to which the smooth-scroll would not be applied, e.g. I want to have smooth scrolling on the document, but not on some specific overflowing elements inside.

Therefore I think the option can be used to specify a CSS3 selector to match elements that should not be affected by the script.

P.S. The reason I want to disable the script for certain elements is that, once you scroll down and reach the end of the overflowing element's contents, the page starts scrolling, which is not actually how it works with the script enabled. I'm not sure if it's a Chrome or smooth-scroll bug, or if it's a bug at all.

Nevertheless, here's a quick 'n dirty solution for my issue, that I think others could benefit as well.

@TonyBogdanov TonyBogdanov reopened this Nov 4, 2015
@Leooo
Copy link

Leooo commented Mar 19, 2016

+1

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