Fix infinite scroll for notifications [SCI-8843]

This commit is contained in:
Anton 2023-07-20 11:04:17 +02:00
parent bcf0dc5069
commit 0163d56186

View file

@ -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: {