IsIdle's detectVisibilityChanges default should be consistent with its docs #147
Labels
documentation
Improvements or additions to documentation
good first issue
Good for newcomers
help wanted
Open to contributions from the community.
Describe the bug
I think the default for IsIdle's detectVisibilityChanges is actually false, but the API docs indicate it's true. I could put out a pull request if you'd like.
Reproduction
Then switch to a different tab, wait 5 seconds, come back.. No "No longer idle" message seen, but should be IF we were detecting visibility changes as the docs say.
then change first line to this:
const idle = new IsIdle({ timeout: 5000, detectVisibilityChanges: true });
Then switch to a different tab, wait 5 seconds, come back.. "No longer idle" message seen. This is what I was expecting it do without specifying "detectVisibilityChanges: true"
Logs
No response
System Info
Severity
annoyance
The text was updated successfully, but these errors were encountered: