baptistebriel / smooth-scrolling

smooth scrolling and parallax effects on scroll
MIT License
612 stars 75 forks source link

(Parallax demo) vs-scrollbar-smooth and vs-scrollbar-parallax got different scroll position after smooth.scrollTo #101

Closed b45526 closed 5 years ago

b45526 commented 5 years ago

Hi @baptistebriel Thank you for this librairy! I m working with "Parallax page demo" to build a website. I found after trigger "smooth.scrollTo(offset)". The "vs-scrolldrag" of "vs-scrollbar-parallax" and "vs-scrollbar-smooth" will use the different translate3d value. I guess it is because the PARALLAX class do not update the "this.var.target" when "scrollTo" triggered. Do you have any suggestion to fix this?
Thank you so much!