Skip to content

Commit

Permalink
fix(animation): move redraw function into pause if statement
Browse files Browse the repository at this point in the history
  • Loading branch information
SvenWesterlaken committed Feb 3, 2021
1 parent 74397d8 commit f628bd6
Showing 1 changed file with 5 additions and 4 deletions.
9 changes: 5 additions & 4 deletions src/vue-wavify.vue
Original file line number Diff line number Diff line change
Expand Up @@ -109,11 +109,12 @@ export default {
this.elapsed += (now - this.lastUpdate);
this.lastUpdate = now;
}
const scale = 1000;
this.step = this.elapsed * Math.PI / scale;
this.redraw();
const scale = 1000;
this.step = this.elapsed * Math.PI / scale;
this.redraw();
}
},
update () {
this.draw();
Expand Down

0 comments on commit f628bd6

Please sign in to comment.