Spaces:
Running
on
T4
Running
on
T4
File size: 226 Bytes
2485dd8 |
1 2 3 4 5 6 7 8 9 10 11 12 |
export default function isScrolledToDocumentBottom(
bufferPx: number = 0,
): boolean {
if (
window.innerHeight + window.scrollY >=
document.body.offsetHeight - bufferPx
) {
return true;
}
return false;
}
|