Merge pull request #1781 from 138138138/player-speed-adjustment

Skip duration multiply by playback rate
This commit is contained in:
TheFrenchGhosty 2021-02-18 12:12:51 +00:00 committed by GitHub
commit 93200c00f2
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

View File

@ -430,17 +430,17 @@ window.addEventListener('keydown', e => {
case 'ArrowRight':
case 'MediaFastForward':
action = skip_seconds.bind(this, 5);
action = skip_seconds.bind(this, 5 * player.playbackRate());
break;
case 'ArrowLeft':
case 'MediaTrackPrevious':
action = skip_seconds.bind(this, -5);
action = skip_seconds.bind(this, -5 * player.playbackRate());
break;
case 'l':
action = skip_seconds.bind(this, 10);
action = skip_seconds.bind(this, 10 * player.playbackRate());
break;
case 'j':
action = skip_seconds.bind(this, -10);
action = skip_seconds.bind(this, -10 * player.playbackRate());
break;
case '0':