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

Idle detection is not consistent in Chrome and firefox #107

Open
ZahraFatima opened this issue Jul 19, 2018 · 3 comments
Open

Idle detection is not consistent in Chrome and firefox #107

ZahraFatima opened this issue Jul 19, 2018 · 3 comments

Comments

@ZahraFatima
Copy link

I'm submitting a ... (check one with "x")

[ ] bug report => search github for a similar issue or PR before submitting
[ ] feature request
[ ] support request => Please do not submit support request here, instead see https://github.com/HackedByChinese/ng2-idle/blob/master/CONTRIBUTING.md#getting-help

Current behavior
Sometimes it happens that I am working on my screen and performing some actions and idle detection occurs

-It should not detects idle until its actually idle.

Minimal reproduction of the problem with instructions

I am setting idle timeout of 15 minutes and sometimes it happens that we are performing actions on my screen and it detects idle timeout and onIdleStart() function executes.

What is the motivation / use case for changing the behavior?

Please tell us about your environment:
Windows, VS Code,Angular CLI, HTTP Client

  • @ng-idle version: 2.x
    I am using @ng-idle/core version 2.0.0-beta.15

  • Angular version: 2.x
    I am using angular 5

  • Browser: [all | Chrome XX | Firefox XX | IE XX | Safari XX | Mobile Chrome XX | Android X.X Web Browser | iOS XX Safari | iOS XX UIWebView | iOS XX WKWebView ]
    It can be reproduced in all browsers

  • Language: [all | TypeScript X.X | ES6/7 | ES5]
    Typescript version is 2.5.3

  • Node: node --version =v9.11.1

@dmbaker90
Copy link

Did you figure anything out here. I'm trying to find out why idle detection runs while users are performing actions on the screen.

@komalpopli
Copy link

a similar issue is happening with me when idle.onTimeout is not firing when the app is running in the background for chrome and edge but is working fine for firefox. I am sure it is because of background task suspension in chrome and edge but the library should have a solution.

@strigefleur
Copy link

It should make use of workers-timers to rely on instead of default timeout functions. Default timeout functions easily suspend on browser inactive tabs throttling.

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

No branches or pull requests

4 participants