Skip to content

Commit 46498e7

Browse files
committed
Add an attribute that called infinite-wrapper to compatible with customize scroll plugin like iScroll
1 parent 1a6198d commit 46498e7

File tree

1 file changed

+2
-0
lines changed

1 file changed

+2
-0
lines changed

src/components/InfiniteLoading.vue

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -32,6 +32,8 @@
3232
return window;
3333
} else if (['scroll', 'auto'].indexOf(getComputedStyle(elm).overflowY) > -1) {
3434
return elm;
35+
} else if (elm.hasAttribute('infinite-wrapper') || elm.hasAttribute('data-infinite-wrapper')) {
36+
return elm;
3537
}
3638
return getScrollParent(elm.parentNode);
3739
}

0 commit comments

Comments
 (0)