Code Monkey home page Code Monkey logo

Comments (6)

mlinquan avatar mlinquan commented on September 24, 2024 1

Thank you for your rp.
The issue was fixed in version 1.0.14.

from vue-awesome-countdown.

mlinquan avatar mlinquan commented on September 24, 2024 1

Pause is added in the new version. You can try the new version 1.0.18.
vac.pauseCountdown()

from vue-awesome-countdown.

mc-mosa avatar mc-mosa commented on September 24, 2024

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.

mlinquan avatar mlinquan commented on September 24, 2024

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?

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.

mc-mosa avatar mc-mosa commented on September 24, 2024

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.

bi6o avatar bi6o commented on September 24, 2024

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)

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo 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.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.