TimeCircles icon indicating copy to clipboard operation
TimeCircles copied to clipboard

Stop timer in TimeCircles

Open pedrosalpr opened this issue 10 years ago • 2 comments

In chronometer mode, how do I do to stop time and do not change the time when I click on start. (eg, time stopped in 15 seconds), wait a while (eg, 5 second), when you click start counting again, it starts at 20 seconds and not 15 seconds of starting.

pedrosalpr avatar Oct 31 '14 11:10 pedrosalpr

I've also been trying to figure this out. I have multiple instances of TimeCircles created and stored in an array. When I call start, it will start counting up, and when I click stop, the animation will stop, but the clock still continues in the background so if you click start again then the animation will skip however long you waited and continue counting.

More similarly to pedro above, when counting down, and then clicking stop, it will stop fine. When I click start however, it will reset the counter and start counting down from the beginning.

ryoonc avatar Jun 03 '15 03:06 ryoonc

Hello,

I can not look at your code, but I have an idea of why this is happening for you. If I am right, then time continues to run when you pause TimeCircles, because the default (if no timer is set) is to use the current date/time as a reference point. To "fix" this problem, make sure to use the data-timer="0" property.

More similarly to pedro above, when counting down, and then clicking stop, it will stop fine. When I click start however, it will reset the counter and start counting down from the beginning.

That sounds like an entirely different problem, can you post the code you're using?

wimbarelds avatar Jun 03 '15 14:06 wimbarelds