소스 검색

:recycle: different settings for intersection

tags/0.9.0
J 4 년 전
부모
커밋
22f52461c2
1개의 변경된 파일1개의 추가작업 그리고 2개의 파일을 삭제
  1. 1
    2
      vue-theme/src/pages/list.vue

+ 1
- 2
vue-theme/src/pages/list.vue 파일 보기

@@ -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) {

Loading…
취소
저장