fkhadra / fkhadra/react-on-screen
addEventListener on element other than window
Open
- Dominant language
- JavaScript
- Stars
- 402
- Forks
- 50
- PR merge metrics
- No merged PRs in 30d
Description
I have a parent element with overflow:auto. Therefore the scrolling event is triggered on this element and not on the window, so the child TrackVisibility components do not update on scroll.
Can the scroll eventListener somehow be added to the parent element?
Contributor guide
No contributing guide indexed for this repository
Assessment
This issue has not been assessed yet.