-
-
Notifications
You must be signed in to change notification settings - Fork 186
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
Idle fired incorrect #51
Comments
I'm experiencing the same issue. It correctly detects activity until the first idle event fires, and at that point the idle event will always fire on its interval, regardless of activity on that page. |
I came across the same issue in 1.0.6. I think it's to do with the I seem to have fixed this by setting the new timer before triggering the wakeup event. Old code:
New code:
|
I've updated this library and added tests. If you can reproduce the issue I can help get it fixed. See the new test here: https://github.com/rosskevin/ifvisible/blob/master/src/IfVisible.ts |
After status changed from active to idle once, idle been fired incorrect.
For example, when i keep moving mouse after status changed from idle to active, idle still fired, even througn my mouse never stopped moving.
The text was updated successfully, but these errors were encountered: