I'm using this plugin in a Cordova app using RequireJS for AMD on a Chrome 51.0.2704.81 WebView on Android, and I've had this problem sometimes where my count up timer would get initialized to 00:00 & my onTick is called once, and then the timer would not update or call onTick for several minutes, after which it'd start running with the correct time displayed. This has happened both when I loaded countdown before the module that uses it, and when it's loaded at the module that uses it.
I've tried debugging it, and found that when the issue occurs, timerCallBack() gets called as it should through rAF, ~60 times a second, but it does not trigger the if (drawStart - animationStartTime >= 1000) block until 1 to 8 minutes later.
It's possible that because of Deferred long-running timer task(s) to improve scrolling smoothness. See crbug.com/574343 which is a warning I do get, it just doesn't run the callback at all when the if condition is satisfied. I don't know how to verify this though, since timerCallBack() itself keeps getting called, but because I've not been able to reproduce it consistently, I've not been able to confirm so far whether or not animationStartTime is getting updated.
I'm using this plugin in a Cordova app using RequireJS for AMD on a Chrome 51.0.2704.81 WebView on Android, and I've had this problem sometimes where my count up timer would get initialized to 00:00 & my
onTickis called once, and then the timer would not update or callonTickfor several minutes, after which it'd start running with the correct time displayed. This has happened both when I loaded countdown before the module that uses it, and when it's loaded at the module that uses it.I've tried debugging it, and found that when the issue occurs,
timerCallBack()gets called as it should through rAF, ~60 times a second, but it does not trigger theif (drawStart - animationStartTime >= 1000)block until 1 to 8 minutes later.It's possible that because of
Deferred long-running timer task(s) to improve scrolling smoothness. See crbug.com/574343which is a warning I do get, it just doesn't run the callback at all when theifcondition is satisfied. I don't know how to verify this though, sincetimerCallBack()itself keeps getting called, but because I've not been able to reproduce it consistently, I've not been able to confirm so far whether or not animationStartTime is getting updated.