-
Environment
I need to get the y offset of an element inside the scroll-content. Thanks! |
Beta Was this translation helpful? Give feedback.
Answered by
idiotWu
Sep 29, 2021
Replies: 1 comment 1 reply
-
Try: elem.getBoundingClientRect().top - scrollbar.contentEl.getBoundingClientRect().top no jQuery is needed. |
Beta Was this translation helpful? Give feedback.
1 reply
Answer selected by
pttnx
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Try:
no jQuery is needed.