Parcourir la source

:recycle: different settings for intersection

tags/0.9.0
J il y a 4 ans
Parent
révision
22f52461c2
1 fichiers modifiés avec 1 ajouts et 2 suppressions
  1. 1
    2
      vue-theme/src/pages/list.vue

+ 1
- 2
vue-theme/src/pages/list.vue Voir le fichier

@@ -157,12 +157,11 @@ export default {
157 157
                 })
158 158
             }
159 159
             const settings = {
160
-                root: footerEl,
161
-                rootMargin: '-100px 0px 0px 0px',
162 160
                 threshold: 0.80
163 161
             }
164 162
             this.observer = new IntersectionObserver(onIntersect, settings)
165 163
             this.observer['_for_type'] = this.type
164
+            this.observer.observe(footerEl)
166 165
             console.log(this.observer)
167 166
         },
168 167
         unsetIntersectionLoader(type) {

Chargement…
Annuler
Enregistrer