sensi
This commit is contained in:
parent
533cd1052e
commit
80002351ad
@ -33,9 +33,11 @@ socket.on('position', (position) => {
|
||||
|
||||
clearTimeout(idleTimeout);
|
||||
|
||||
if (Math.abs(speed) < 2) {
|
||||
if (Math.abs(speed) < 5) {
|
||||
stopPlayback();
|
||||
} else {
|
||||
return;
|
||||
}
|
||||
|
||||
const isReverse = speed < 0;
|
||||
|
||||
// Simuler reverse
|
||||
@ -43,11 +45,11 @@ socket.on('position', (position) => {
|
||||
simulateReverse(Math.abs(speed));
|
||||
} else {
|
||||
stopReverse();
|
||||
let playbackSpeed = 1 + speed * 0.01;
|
||||
playbackSpeed = Math.max(0.5, Math.min(2, playbackSpeed));
|
||||
let playbackSpeed = 1 + speed * 0.0015;
|
||||
playbackSpeed = Math.max(0.5, Math.min(1.5, playbackSpeed));
|
||||
controlPlayback(playbackSpeed);
|
||||
}
|
||||
}
|
||||
|
||||
}
|
||||
|
||||
lastPosition = position;
|
||||
|
||||
Loading…
Reference in New Issue
Block a user