Don't assume files only move forward in time (fixes #26)
This commit is contained in:
parent
f39a9d2232
commit
0e40f26438
1 changed files with 4 additions and 3 deletions
|
@ -359,9 +359,10 @@ export const load = (
|
||||||
});
|
});
|
||||||
wavesurfer.on("audioprocess", () => {
|
wavesurfer.on("audioprocess", () => {
|
||||||
if (
|
if (
|
||||||
wavesurfer.getCurrentTime() -
|
Math.abs(
|
||||||
getState().mixer.players[player].timeCurrent >
|
wavesurfer.getCurrentTime() -
|
||||||
0.5
|
getState().mixer.players[player].timeCurrent
|
||||||
|
) > 0.5
|
||||||
) {
|
) {
|
||||||
dispatch(
|
dispatch(
|
||||||
mixerState.actions.setTimeCurrent({
|
mixerState.actions.setTimeCurrent({
|
||||||
|
|
Loading…
Reference in a new issue