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 93c1f9b commit 7e139ebCopy full SHA for 7e139eb
src/isBottom.ts
@@ -0,0 +1,5 @@
1
+export function isBottom(distance: number = 0): boolean {
2
+ return document.documentElement.clientHeight + window.scrollY + distance >=
3
+ (document.documentElement.scrollHeight || document.documentElement.clientHeight);
4
+
5
+}
0 commit comments