timeline rewind
This commit is contained in:
parent
0e8efa0902
commit
ebc97c8930
@ -71,7 +71,7 @@ function controlRewind(speed) {
|
||||
isPlaying = false;
|
||||
}
|
||||
|
||||
const rewindAmount = speed * 0.01;
|
||||
const rewindAmount = Math.min(speed * 0.01, 1);
|
||||
audio.currentTime = Math.max(0, audio.currentTime - rewindAmount);
|
||||
|
||||
vinyl.classList.add('reverse');
|
||||
|
||||
Loading…
Reference in New Issue
Block a user