Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Finish event not called when decrementing #19

Open
kgrosvenor opened this issue Nov 2, 2022 · 2 comments
Open

Finish event not called when decrementing #19

kgrosvenor opened this issue Nov 2, 2022 · 2 comments

Comments

@kgrosvenor
Copy link

kgrosvenor commented Nov 2, 2022


<circular-count-down-timer
                stroke-color="#0078f8"
                v-if="item.isActive && item.hasCompleted === false"
                :stroke-width="2"
                :main-circle-id="`timer-${index}`"
                :stop-conditions="getStopConditionsForActivity(index)"
                title="Nice"
                :circles="[
                {
                  id: `timer-${index}`,
                  steps: (item.seconds | item.reps),
                  stepLength: -1,
                  size: 46,
                }
              ]"
                @finish="moveToNextActivity(index)"
                >
</circular-count-down-timer>
getStopConditionsForActivity(index) {
   let data = {};
   let item = this.workout.activitys[index];

   data[`timer-${index}`] = (item.reps | item.seconds)

   return data;
},

@kgrosvenor
Copy link
Author

In my case it finishes a second early, i have steps set to 2 in one case and it restarts after reaching one, same happens when its 30 and it reaches 29. Any ideas?

@kgrosvenor
Copy link
Author

kgrosvenor commented Nov 2, 2022

I worked around it by using time update, for some reason it wont trigger @finish

@kgrosvenor kgrosvenor reopened this Nov 2, 2022
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant