|
|
@@ -144,7 +144,7 @@ export default {
|
|
144
|
144
|
if(!this.type) return console.error('cannot setup interseciton handler for undefined type')
|
|
145
|
145
|
|
|
146
|
146
|
console.warn('setting up intersection handler for:', this.type)
|
|
147
|
|
- const footerEl = document.querySelector(".footer-wrapper footer")
|
|
|
147
|
+ const footerEl = document.querySelector(".page--list > article footer")
|
|
148
|
148
|
console.warn('found el: ',footerEl)
|
|
149
|
149
|
if(!footerEl) return
|
|
150
|
150
|
console.warn('attach to: ',footerEl)
|
|
|
@@ -158,10 +158,12 @@ export default {
|
|
158
|
158
|
}
|
|
159
|
159
|
const settings = {
|
|
160
|
160
|
root: footerEl,
|
|
161
|
|
- rootMargin: '-20px 0px 0px 0px',
|
|
162
|
|
- threshold: 1.0
|
|
|
161
|
+ rootMargin: '0px 0px 0px 0px',
|
|
|
162
|
+ threshold: 0.80
|
|
163
|
163
|
}
|
|
164
|
164
|
this.observer = new IntersectionObserver(onIntersect, settings)
|
|
|
165
|
+ this.observer['_for'] = this.type
|
|
|
166
|
+ console.log(this.observer)
|
|
165
|
167
|
},
|
|
166
|
168
|
unsetIntersectionLoader(type) {
|
|
167
|
169
|
if(!type) return console.error('cannot unset intersection handler for undefined type...')
|