|
|
@@ -145,8 +145,9 @@ export default {
|
|
145
|
145
|
|
|
146
|
146
|
console.warn('setting up intersection handler for:', this.type)
|
|
147
|
147
|
const footerEl = document.querySelector(".footer-wrapper footer")
|
|
148
|
|
- console.warn('attach to: ',footerEl)
|
|
|
148
|
+ console.warn('found el: ',footerEl)
|
|
149
|
149
|
if(!footerEl) return
|
|
|
150
|
+ console.warn('attach to: ',footerEl)
|
|
150
|
151
|
|
|
151
|
152
|
const onIntersect = (entries, observer) => {
|
|
152
|
153
|
console.log('intersection handler fired...')
|
|
|
@@ -157,7 +158,7 @@ export default {
|
|
157
|
158
|
}
|
|
158
|
159
|
const settings = {
|
|
159
|
160
|
root: footerEl,
|
|
160
|
|
- rootMargin: '-20px 0 0 0',
|
|
|
161
|
+ rootMargin: '-20px 0px 0px 0px',
|
|
161
|
162
|
threshold: 1.0
|
|
162
|
163
|
}
|
|
163
|
164
|
this.observer = new IntersectionObserver(onIntersect, settings)
|