Преглед изворни кода

:recycle: setting intersection point even higher

tags/0.9.0
J пре 4 година
родитељ
комит
0a9fb1e0f7
1 измењених фајлова са 2 додато и 2 уклоњено
  1. 2
    2
      vue-theme/src/pages/list.vue

+ 2
- 2
vue-theme/src/pages/list.vue Прегледај датотеку

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

Loading…
Откажи
Сачувај