Why will window.scrollY be less than document.documentElement.scrollHeight ??
Hello guys, please tell me why when I scroll to the end window.scrollY will be less than document.documentElement.scrollHeight, it's just strange that the height of the page is greater than the length of the scroll, for 2 days I have been trying to fight this problem. That is, if the length of the scroll is equal to the length of the page, then we exit the conditions. Thanks in advance))
window.scrollXpoints to the position of the top-left corner of the screen. And it, when scrolling down to the end, will be equal to
scrollHeight - clientHeight.Anonymous
To place the code, please use CodePen or similar tool. Thanks you!