diff options
| author | TheFrenchGhosty <47571719+TheFrenchGhosty@users.noreply.github.com> | 2021-02-18 12:12:51 +0000 |
|---|---|---|
| committer | GitHub <noreply@github.com> | 2021-02-18 12:12:51 +0000 |
| commit | 93200c00f22370ec9f38190a7c6854023a811741 (patch) | |
| tree | 7dbbb7763b4a62e9f8e0613514c8b058090576ba | |
| parent | fbee9fe51e295fd44ba2dd65ac20de615c91a698 (diff) | |
| parent | 3b484c362e607e4f17e0bb68051e7f6bf2140e3a (diff) | |
| download | invidious-93200c00f22370ec9f38190a7c6854023a811741.tar.gz invidious-93200c00f22370ec9f38190a7c6854023a811741.tar.bz2 invidious-93200c00f22370ec9f38190a7c6854023a811741.zip | |
Merge pull request #1781 from 138138138/player-speed-adjustment
Skip duration multiply by playback rate
| -rw-r--r-- | assets/js/player.js | 8 |
1 files changed, 4 insertions, 4 deletions
diff --git a/assets/js/player.js b/assets/js/player.js index 04326631..7490bd75 100644 --- a/assets/js/player.js +++ b/assets/js/player.js @@ -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': |
