mirror of
https://github.com/scinote-eln/scinote-web.git
synced 2025-02-20 22:03:03 +08:00
Merge pull request #5827 from aignatov-bio/ai-sci-8843-fix-notification-infinite-scroll
Fix infinite scroll for notifications [SCI-8843]
This commit is contained in:
commit
083bd4b1e2
1 changed files with 4 additions and 2 deletions
|
@ -66,8 +66,10 @@ export default {
|
|||
},
|
||||
mounted() {
|
||||
let container = this.$refs.scrollContainer.$el
|
||||
container.addEventListener('ps-y-reach-end', (e) => {
|
||||
this.loadNotifications();
|
||||
container.addEventListener('ps-scroll-y', (e) => {
|
||||
if (e.target.scrollTop + e.target.clientHeight >= e.target.scrollHeight - 20) {
|
||||
this.loadNotifications();
|
||||
}
|
||||
})
|
||||
},
|
||||
computed: {
|
||||
|
|
Loading…
Reference in a new issue