Skip to content

Commit

Permalink
fix #8 bug
Browse files Browse the repository at this point in the history
  • Loading branch information
wilsonwu committed Mar 31, 2020
1 parent 35b50ec commit 298898c
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 2 deletions.
2 changes: 1 addition & 1 deletion package.json
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
{
"name": "vuetify-audio",
"version": "0.3.1",
"version": "0.3.2",
"description": "Vue.js audio files player with Vuetify UI framework",
"main": "index.js",
"scripts": {
Expand Down
3 changes: 2 additions & 1 deletion src/vuetifyaudio.vue
Original file line number Diff line number Diff line change
Expand Up @@ -79,8 +79,9 @@
this.audio.currentTime = parseInt(this.audio.duration / 100 * this.percentage);
},
stop () {
this.paused = this.playing = false
this.audio.pause()
this.paused = true
this.playing = false
this.audio.currentTime = 0
},
play () {
Expand Down

0 comments on commit 298898c

Please sign in to comment.