smoothscroll-for-websites
smoothscroll-for-websites copied to clipboard
"Excluded" option
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.
+1