joshwnj / joshwnj/react-visibility-sensor

Visibility=true fires as page loads with `delayedCall` enabled

Open
#109 3 comments 0 reactions 0 assignees View on GitHub
bug
Dominant language
JavaScript
Stars
2.3k
Forks
192
PR merge metrics
No merged PRs in 30d

Description

We have a page with about 14 modules on it. We want to use your sensor to track when the user scrolls the page, once per session. Because of this bug, we are seeing all of the events fire at the same time. Below is sudo code:

```
this.onModuleVisibilityChange(isVisible, 'trainer')}>

```

`onModuleVisibilityChange` updates the `trainerModuleVisible` bool to true, it is defaulted to false.

Any help would be great, as this is blocking us from analytics on these modules.

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.