vue-infinite-loading icon indicating copy to clipboard operation
vue-infinite-loading copied to clipboard

Event keep firing when my application goes to full screen mode.

Open brooklyn097 opened this issue 5 years ago • 2 comments

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!

brooklyn097 avatar Mar 23 '19 13:03 brooklyn097

you can try to set the attribute of "forceUseInfiniteWrapper" to true.

duckerLi avatar Apr 22 '19 02:04 duckerLi

you can try to set the attribute of "forceUseInfiniteWrapper" to true.

nice, it works

mannix-lei avatar Oct 25 '19 15:10 mannix-lei