PeachScript / vue-infinite-loading

An infinite scroll plugin for Vue.js.
https://peachscript.github.io/vue-infinite-loading/
MIT License
2.66k stars 366 forks source link

fix: scroll position after top-direction loading #329

Open tikhomirovv opened 1 year ago

tikhomirovv commented 1 year ago

Issue: Incorrect scroll position after loading data with top-direction scrolling.

After some debugging, I found the cause: when the data is added to the page, the value of the wrapper target.scrollTo also increases, causing the scroll position to scroll back almost the width of the content in the opposite direction.