We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent d812e2b commit 3234b6aCopy full SHA for 3234b6a
src/components/InfiniteLoading.vue
@@ -40,7 +40,7 @@
40
* @return {Number} distance
41
*/
42
function getCurrentDistance(elm) {
43
- const styles = getComputedStyle(elm);
+ const styles = getComputedStyle(elm === window ? document.body : elm);
44
const innerHeight = elm === window
45
? window.innerHeight
46
: parseInt(styles.height, 10);
0 commit comments