Comments (6)
Thank you for your rp.
The issue was fixed in version 1.0.14.
from vue-awesome-countdown.
Pause is added in the new version. You can try the new version 1.0.18.
vac.pauseCountdown()
from vue-awesome-countdown.
I think line number 133 in src/vue-awesome-countdown.vue
is causing the same issue, it should be
vm.remainingTime = new Date(vm.actualEndTime).getTime() - new Date().getTime()
what do you think?
from vue-awesome-countdown.
I think line number 133 in
src/vue-awesome-countdown.vue
is causing the same issue, it should bevm.remainingTime = new Date(vm.actualEndTime).getTime() - new Date().getTime()what do you think?
I think both methods can be used.
Your code is more concise.
I may use your method in the next version.
Thanks again.
from vue-awesome-countdown.
Your method doesn't take into account that the timer might be paused (i.e. stopped then started again after some time), because you're calculating the remainingTime
based on the actualStartTime
which never changes (once the timer has restarted), unlike the actualEndTime
which is changed everytime the timer is started/resumed.. and that's the subject of this issue; to handle the pause feature.
from vue-awesome-countdown.
I can confirm that the issue is not resolved in the new version, and again it is observable only in the test page that you provide https://vac.js.org/examples/methods/all-methods.html.
from vue-awesome-countdown.
Related Issues (20)
- Update documentation to fit Vue 2.6 slots syntax HOT 7
- startCountdown() restart doesn't work HOT 4
- IE10 不兼容 HOT 1
- npm install vue-awesome-countdown (Dependent package errors) HOT 3
- timeObj.s not precise HOT 1
- finised instead of finished HOT 1
- stoped instead of stopped HOT 1
- finish event not working
- finish and autostart false not working HOT 1
- Sometimes the countdown is deducted by 2 seconds HOT 5
- switchCountdown not really stopping the timer HOT 3
- How to reset the timer without restarting it? HOT 3
- Start event not called with auto start false HOT 1
- Start event not called with autoStart false HOT 1
- Timer not starts when using dynamic start-time and end-time HOT 1
- ie11报错 HOT 1
- how to import and use in nuxt? HOT 1
- 修改绑定的时间戳不更新
- Is it possible to count up? HOT 2
- 目前支持Vue3吗 HOT 2
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 vue-awesome-countdown.