Splode / pomotroid

:tomato: Simple and visually-pleasing Pomodoro timer
https://splode.github.io/pomotroid/
MIT License
4.36k stars 369 forks source link

weird behaviour of the percentage circle #104

Open diksown opened 4 years ago

diksown commented 4 years ago

when I minimize the timer on windows, the circle that shows the running time visually stops. It also shows some weird behaviour sometimes - for example, sometimes I stop the timer but the circle continues running. (see the images) I'm on windows 10.

Screenshot_1

Screenshot_2

Splode commented 4 years ago

@diksown thanks for the contribution. The visual dial stops because the requestAnimationFrame is throttled when the window is minimized. It should update its position when the window is re-focused.

As for the dial continuing to advance when the timer is paused, sounds like a bug and I need to investigate further.

diksown commented 4 years ago

well, it doesn't update the position as it should :s when I focus in the window again, the timer is correct, but the circle is on the same position where I left it (it should advance too) Screenshot (16) Screenshot (17) so it's kinda weird, sometimes the circle advances even with the time stopped, sometimes it stops when the timer is still running.