This commit is contained in:
El-yazide MOHAMED 2025-06-07 07:23:29 +02:00
parent 80002351ad
commit 98f3a4a02f

View File

@ -33,7 +33,7 @@ socket.on('position', (position) => {
clearTimeout(idleTimeout);
if (Math.abs(speed) < 5) {
if (Math.abs(speed) < 15) {
stopPlayback();
return;
}
@ -45,7 +45,7 @@ socket.on('position', (position) => {
simulateReverse(Math.abs(speed));
} else {
stopReverse();
let playbackSpeed = 1 + speed * 0.0015;
let playbackSpeed = 1 + speed * 0.0003;
playbackSpeed = Math.max(0.5, Math.min(1.5, playbackSpeed));
controlPlayback(playbackSpeed);
}