vue-infinite-loading
vue-infinite-loading copied to clipboard
Event keep firing when my application goes to full screen mode.
I'm using Vue-Electron to build a video application, every time I active full screen mode (when watching a video) it keep calling to
infinite="loadMore"
and it will never stop if full screen mode activating. I'm now using this way to prevent it load more data but this will hurt application's performance and the scroll position will be reset to top.
loadMore($state) {
if (this.loadMoreAllowed) {
loadData().then(function (response) {
if (response.length > 0) {
this.data.push(...data)
this.page += 1
$state.loaded()
} else {
$state.complete()
}
})
} else {
$state.reset()
}
}
Please give me some advises to fix this issue!
you can try to set the attribute of "forceUseInfiniteWrapper" to true.
you can try to set the attribute of "forceUseInfiniteWrapper" to true.
nice, it works