fkhadra / fkhadra/react-on-screen

addEventListener on element other than window

Open
#27 2 comments 17 reactions 0 assignees View on GitHub
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.

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.