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

Prevent smooth scrolling on certain elements #109

Open
glenthemes opened this issue Sep 27, 2024 · 0 comments
Open

Prevent smooth scrolling on certain elements #109

glenthemes opened this issue Sep 27, 2024 · 0 comments

Comments

@glenthemes
Copy link

Hi there, thank you for creating this plugin, it's worked beautifully for many of my projects so far.

I have a question (not a bug) in regards to: is it possible to only allow smooth scrolling on certain elements, and prevent it from doing so on other elements?

I've created a quick demo of what I'm trying to achieve: jsfiddle.net/glenthemes/c2fq8sdk

image


I've tried to use SmoothScroll.destroy(); on elements I want the smooth scroll to be disabled on; however this didn't seem to work, as it ends up disabling smooth scroll for all elements.

I appreciate any advice. Looking forward to hearing from you. ☺️

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

No branches or pull requests

1 participant