-
-
Notifications
You must be signed in to change notification settings - Fork 215
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
Allow to smooth scroll any element, not only OverlayScrollbars instance #445
Comments
Hi. Were you able to solve the smooth scrolling issue? |
@plashenkov @andron13 I'll add the |
Hi, @andron13! Yes, with the help of additional |
@KingSora Great! |
@KingSora Could you consider adding horizontal smooth scroll as well? Even |
Hi, could i ask? have you done? |
Hi!
We already have the
instance.scroll()
method, but what if we want to scroll smoothly any scrollable HTML element, not necessarily customized with OverlayScrollbars?Sure, we have native
element.scrollTo({top: 100, behavior: 'smooth'})
, but it doesn't allow us to controll scroll duration (it differs depending on scroll distance).There are also other packages which allow us to do this. But since we use OverlayScrollbars and it already can do this, it would be great to have this function out-of-the-box.
The text was updated successfully, but these errors were encountered: