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

Improve timer implementation to suit mobile browsers #2

Open
elenalape opened this issue Oct 3, 2022 · 1 comment
Open

Improve timer implementation to suit mobile browsers #2

elenalape opened this issue Oct 3, 2022 · 1 comment
Labels
good first issue Good for newcomers

Comments

@elenalape
Copy link
Owner

App relies on the browser being able to refresh content every one second.

This is unreliable in mobile browsers, unfortunately, because the window/tab is put to sleep when it's not active.

@elenalape elenalape added the good first issue Good for newcomers label Oct 3, 2022
@meltq
Copy link

meltq commented Oct 6, 2022

I would like to work on this issue

Proposal

Setting a new Date().getTime() for when you create a new timer, and get the time every second and subtract it from that, so even when the tab is inactive, the timer would go back to the right time when the tab does become active.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
good first issue Good for newcomers
Projects
None yet
Development

No branches or pull requests

2 participants