Created
March 25, 2023 16:46
-
-
Save aniketchanana/d1f2a5dc55d67fcf08d471914ffde269 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
const element = document.getElementById(ELEMENT_ID); | |
const onScroll = (e) => { | |
console.log("Scroll event getting fired", element?.scrollTop); | |
}; | |
element?.addEventListener("scroll", onScroll); | |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment