diff options
| author | Samantaz Fox <coding@samantaz.fr> | 2022-07-07 00:05:25 +0200 |
|---|---|---|
| committer | Samantaz Fox <coding@samantaz.fr> | 2022-07-07 00:05:25 +0200 |
| commit | dc6d088e304d9f7d90d728a006f08323db0da9c7 (patch) | |
| tree | f3bb2ee606b3e62429bc6a6a90f68088ca233d25 /assets/js | |
| parent | b0ad27af230914555e5978692c5af932b95eacb4 (diff) | |
| parent | f6b1cbd5d0338e65f56adb3aaf71738534afda6a (diff) | |
| download | invidious-dc6d088e304d9f7d90d728a006f08323db0da9c7.tar.gz invidious-dc6d088e304d9f7d90d728a006f08323db0da9c7.tar.bz2 invidious-dc6d088e304d9f7d90d728a006f08323db0da9c7.zip | |
Merge pull request #3158 from 138138138/138138138-mobileui-forward-rate
Diffstat (limited to 'assets/js')
| -rw-r--r-- | assets/js/player.js | 5 |
1 files changed, 4 insertions, 1 deletions
diff --git a/assets/js/player.js b/assets/js/player.js index aef50926..f7005280 100644 --- a/assets/js/player.js +++ b/assets/js/player.js @@ -145,7 +145,7 @@ function isMobile() { } if (isMobile()) { - player.mobileUi(); + player.mobileUi({ touchControls: { seekSeconds: 5 * player.playbackRate() } }); var buttons = ['playToggle', 'volumePanel', 'captionsButton']; @@ -274,6 +274,9 @@ function updateCookie(newVolume, newSpeed) { player.on('ratechange', function () { updateCookie(null, player.playbackRate()); + if (isMobile()) { + player.mobileUi({ touchControls: { seekSeconds: 5 * player.playbackRate() } }); + } }); player.on('volumechange', function () { |
