Comments (4)
And when you switch to an other tab it counts with half speed. It looks like that the time shown is also depending on the script run time. It should be synced to the system time.
from flipclock.
- Try adding an alert("foo"); in your javascript Console. Counter will pause and resume afterwards.
- Try adding tons of flipclocks to one and the same page - the mere "load" of rendering all of these will cause several seconds of drift per minute.
In my case, I wanted to use it for counting down a lot of things... I think what's needed is for the countdown to instead of simply "counting" down 1 at a time, it needs to keep track of the target Date
where it should reach 0.
from flipclock.
Why is this closed? I was about to open a similar issue as it is very much a problem for my application.
If the computer / browser is suspended the timer will be effectively paused. If you switch tabs, intervals are apparently slowed or at least scheduled with extremely low priorities. Which causes considerable drift over even a few minutes.
I am still looking at the code, but I suspect this is because Face
depends on the interval being called exactly every second and setInterval
makes no assurances of this. I will most likely be writing a custom face that adjust the counters according to the delta between timer start and now.
from flipclock.
@sskrla You can see issue #155 for a discussion (and a possible workaround) for what your experiencing.
from flipclock.
Related Issues (20)
- Default negative values support confuse people HOT 1
- JS6 - minute face - seconds issue
- Project status? HOT 9
- flipclockjs.com is down HOT 2
- Creating a
- How to properly destroy a running flipclock instance? HOT 2
- Can't get it to work?
- please change documentation link to http://web.archive.org/web/20191208040027/http://flipclockjs.com/ HOT 4
- Reset on Zero
- False Translation Alias for italian HOT 1
- Docs website is down http://flipclockjs.com/ HOT 1
- ES6 docs?
- When the countdown ends, it doesn't stop HOT 2
- Bump marked from 1.1.1 to 2.0.0 security issue is raised
- stopAt attribute does not work for countdowns HOT 2
- HourCounter face does not work for countdowns
- when I am refreshing the page it gets reset and start the timer from the beginning what I do please tell me what I add extra in this code.
- Flip Clock just disappeared from the page
- Clock
- Countdown page reload does not work properly
Recommend Projects
-
React
A declarative, efficient, and flexible JavaScript library for building user interfaces.
-
Vue.js
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
-
Typescript
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
-
TensorFlow
An Open Source Machine Learning Framework for Everyone
-
Django
The Web framework for perfectionists with deadlines.
-
Laravel
A PHP framework for web artisans
-
D3
Bring data to life with SVG, Canvas and HTML. 📊📈🎉
-
Recommend Topics
-
javascript
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
-
web
Some thing interesting about web. New door for the world.
-
server
A server is a program made to process requests and deliver data to clients.
-
Machine learning
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
-
Visualization
Some thing interesting about visualization, use data art
-
Game
Some thing interesting about game, make everyone happy.
Recommend Org
-
Facebook
We are working to build community through open source technology. NB: members must have two-factor auth.
-
Microsoft
Open source projects and samples from Microsoft.
-
Google
Google ❤️ Open Source for everyone.
-
Alibaba
Alibaba Open Source for everyone
-
D3
Data-Driven Documents codes.
-
Tencent
China tencent open source team.
from flipclock.