skip to beginning on previous
This commit is contained in:
parent
3e8f758ee0
commit
a2c37eb4b2
@ -149,7 +149,8 @@ export const playerModule: Module<State, any> = {
|
||||
await audio.play()
|
||||
},
|
||||
async previous({ commit, state }) {
|
||||
commit('setQueueIndex', state.queueIndex - 1)
|
||||
commit('setQueueIndex',
|
||||
audio.currentTime > 3 ? state.queueIndex : state.queueIndex - 1)
|
||||
commit('setPlaying')
|
||||
await audio.play()
|
||||
},
|
||||
|
Loading…
x
Reference in New Issue
Block a user