diff --git a/src/mixer/state.ts b/src/mixer/state.ts index ef690f7..d68157f 100644 --- a/src/mixer/state.ts +++ b/src/mixer/state.ts @@ -406,6 +406,14 @@ export const load = ( }) ); }); + wavesurfer.on("seek", () => { + dispatch( + mixerState.actions.setTimeCurrent({ + player, + time: wavesurfer.getCurrentTime() + }) + ); + }) wavesurfer.on("finish", () => { dispatch(mixerState.actions.setPlayerState({ player, state: "stopped" })); const state = getState().mixer.players[player];