Open Joebu opened 2 years ago
We got the same issue in Vue 3.2
@ferrykranenburgcw I did the following to resolve this issue I'm calling handleResize();
on the component
const list = ref(); //refernce to RecycleScroller component
let lastScrollTop = 0;
const handleScroll = function({ target }: { target: HTMLElement }) {
const { scrollTop, scrollHeight, offsetHeight } = target;
if (scrollTop > lastScrollTop) {
if (Math.ceil(scrollTop) > scrollHeight - offsetHeight - 100) {
loadMore().then(() => {
list.value.handleResize();
});
}
}
lastScrollTop = scrollTop;
};
hey, bro. aren't you going to fix this problem?
still not working with vue@3.2.26. plz fix it, i really neeeeeeeeeeed it. thanks.
I'm trying to implement infinite loading the issue is that even after the data is added I can't scroll further until I scroll up a bit then its being refreshed. here's a reproduction of the issue
I'm using
"vue-virtual-scroller": "^2.0.0-alpha.1"
this is my component