mirror of
https://gitea.invidious.io/iv-org/invidious-copy-2022-08-14.git
synced 2024-08-15 00:53:20 +00:00
Merge pull request #3158 from 138138138/138138138-mobileui-forward-rate
This commit is contained in:
commit
dc6d088e30
1 changed files with 4 additions and 1 deletions
|
@ -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 () {
|
||||
|
|
Loading…
Reference in a new issue