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