Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Added a withFocus prop and EventListener which detects if the document has focus. #54

Open
wants to merge 10 commits into
base: master
Choose a base branch
from

Conversation

cilliand
Copy link

Added a withFocus prop and EventListener which detects if the document has focus. This can then be used to ensure isVisible tracking only happens when the user is looking at their screen good for checking if a user has "read" a message for example.

This includes body prop from #52

@coveralls
Copy link

coveralls commented Aug 17, 2019

Coverage Status

Coverage decreased (-5.5%) to 91.453% when pulling 7918ef6 on cilliand:master into f4724fb on fkhadra:master.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

None yet

3 participants