Open ZahraFatima opened 6 years ago
Did you figure anything out here. I'm trying to find out why idle detection runs while users are performing actions on the screen.
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.
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.
I'm submitting a ... (check one with "x")
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