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 <section
class="med-col-6 large-col-6" class="med-col-6 large-col-6"
@scroll.passive="onScrollCenter"
> >
<div <div
ref="scrollablecenter" ref="scrollablecenter"
class="wrapper" class="wrapper"
@scroll.passive="onScrollCenter"
> >
<slot /> <slot />
</div> </div>
@@ -49,7 +49,7 @@ export default {
}, },
methods: { methods: {
onScrollCenter (e) { onScrollCenter (e) {
// console.log('mainLayout onScrollCenter: e', e) console.log('mainLayout onScrollCenter: e', e)
this.$emit('onCenterScrolled', e) this.$emit('onCenterScrolled', e)
}, },
scrollToRef () { scrollToRef () {
+1 -1
View File
@@ -350,7 +350,7 @@ export default {
}) })
}, },
onCenterScrolled (e) { 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) { if (!this.center_scrolled && e.target.scrollTop > this.inifinite_load_distance * 1.5) {
this.center_scrolled = true this.center_scrolled = true
} }