fixed infinite loading top
This commit is contained in:
@@ -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 () {
|
||||||
|
|||||||
@@ -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
|
||||||
}
|
}
|
||||||
|
|||||||
Reference in New Issue
Block a user