diff --git a/src/components/DictionaryView.vue b/src/components/DictionaryView.vue index d02b7076ea0ea691f9e8ad60cfc82dee0d0ec9ac..9ceb10edcf7505ce9a5a32cc85a9ba69279a19c4 100644 --- a/src/components/DictionaryView.vue +++ b/src/components/DictionaryView.vue @@ -533,30 +533,6 @@ export default { self.perPage = event.state.perPage } } - -/* - window.onscroll = () => { - if (window.pageYOffset > this.max_scroll && window.pageYOffset > window.window.innerHeight) { - - this.max_scroll += window.window.innerHeight - if (this.max_scroll > document.body.scrollHeight - window.window.innerHeight-1) { - this.max_scroll = document.body.scrollHeight - window.window.innerHeight-1 - } - - let offset = 5 * this.page - this.page += 1 - if (!self.waiting_for_articles) { - self.waiting_for_articles = true - Promise.all([ - load_articles(this, this.query, offset, 5, "bm"), - load_articles(this, this.query, offset, 5, "nn") - ]).then(() => { - self.waiting_for_articles = false - }) - } - } - } */ - } } </script>