fixed infinite loading top

This commit is contained in:
2022-03-18 15:21:38 +01:00
parent 2d50e7f48a
commit c30aa42b1d
2 changed files with 3 additions and 3 deletions
+2 -2
View File
@@ -9,11 +9,11 @@
<section
class="med-col-6 large-col-6"
@scroll.passive="onScrollCenter"
>
<div
ref="scrollablecenter"
class="wrapper"
@scroll.passive="onScrollCenter"
>
<slot />
</div>
@@ -49,7 +49,7 @@ export default {
},
methods: {
onScrollCenter (e) {
// console.log('mainLayout onScrollCenter: e', e)
console.log('mainLayout onScrollCenter: e', e)
this.$emit('onCenterScrolled', e)
},
scrollToRef () {
+1 -1
View File
@@ -350,7 +350,7 @@ export default {
})
},
onCenterScrolled (e) {
// console.log('Edition centerScrolled(e)', e.target.scrollTop)
console.log('Edition centerScrolled(e)', e.target.scrollTop)
if (!this.center_scrolled && e.target.scrollTop > this.inifinite_load_distance * 1.5) {
this.center_scrolled = true
}