Open plashenkov opened 2 years ago
Hi. Were you able to solve the smooth scrolling issue?
@plashenkov @andron13 I'll add the scroll
function as an instance function and also as an static function in version2. I plan on releasing it end of september
Hi, @andron13! Yes, with the help of additional scroll-smooth
package. But it would be nice OverlayScrollbars
had this.
@KingSora Great!
@KingSora Could you consider adding horizontal smooth scroll as well? Even scroll-smooth
cannot do that, AFAIK.
@plashenkov @andron13 I'll add the
scroll
function as an instance function and also as an static function in version2. I plan on releasing it end of september
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.