Created
May 23, 2022 08:06
-
-
Save hkitago/6e3f6d5517f5f196dfc95df8128ebcf5 to your computer and use it in GitHub Desktop.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
scrolledElement.addEventListener('scroll', (e) => { | |
if (e.tareget.offsetHeight + e.tareget.scrollTop >= e.tareget.scrollHeight) { | |
// Do something. | |
} | |
}, { passive: true }) |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment