-
-
Save DerexScript/b6419c33ae6a2470554b788c46efd548 to your computer and use it in GitHub Desktop.
scroll position
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
retorna posição atual | |
document.querySelector('.drawer-body').scrollTop; | |
pega valor total | |
document.querySelector('.drawer-body').scrollHeight |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment