YvesCoding / vuescroll

A customizable scrollbar plugin based on vue.js for PC , mobile phone, touch screen, laptop.
https://nifty-shannon-7eab38.netlify.app/
MIT License
1.27k stars 111 forks source link

scrollIntoView second parameter is boolean but it shouldn't #264

Closed luisxxor closed 2 years ago

luisxxor commented 3 years ago

The second parameter of scrollIntoView method it is a boolean called animate, but then the method calls scrollBy with animate as the second parameter, but the second parameter of scrollBy is the speed and it is numeric

wangyi7099 commented 2 years ago

Hi. Thanks for the report! The animate's type on docs is a typo. It should be number rather than boolean.
And when you are using in real, when the animate you pass is 0 , it means not animate , and when you give it a number greater than 0 , it will animate.