-
Notifications
You must be signed in to change notification settings - Fork 8
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
onTimerRunning don't work when tab is not active #32
Comments
Hi there, I think the issue is the fact that the library is using A possible solution would be to add an option to use In general, I think that another solution to your problem might be to spawn a Web Worker and post "ticks" to the main thread. The Web Worker is allowed to use intervals/timeouts without limitation and is running on another thread in the background even if the tab is inactive. I will also have a look if a proper solution can be applied to the library itself. |
Would just tell my solution, maybe any other can help it. `
}, 1000); |
Hello,
as first let me say you have do a nice Script here, i like it ! =)
But i have a little problem, your timer is anymore running when the tab is anymore in focus.
That is a problem then il added a tick-function on onTimerRunning, so when timer is done it will play an alert sound.
But the tab need to be still active to run the tick-function, this is a big problem.
is it a native problem of canvas or on your script?
I would be very much happy if you can help/fix.
Thank you.
The text was updated successfully, but these errors were encountered: