aboutsummaryrefslogtreecommitdiffhomepage
path: root/client/src/assets/player/settings-menu-item.ts
diff options
context:
space:
mode:
authorChocobozzz <me@florianbigard.com>2018-09-24 17:44:50 +0200
committerChocobozzz <me@florianbigard.com>2018-09-24 17:44:50 +0200
commit5363a766d95ed8654ad3e1b94538f085c2a3a101 (patch)
tree4bcbce6da8a3f99059821abc6e1cd80a739c183e /client/src/assets/player/settings-menu-item.ts
parent47d0b3ee611d1ae85c92149521619ebdf5f5cc25 (diff)
downloadPeerTube-5363a766d95ed8654ad3e1b94538f085c2a3a101.tar.gz
PeerTube-5363a766d95ed8654ad3e1b94538f085c2a3a101.tar.zst
PeerTube-5363a766d95ed8654ad3e1b94538f085c2a3a101.zip
Fix playback rate hotkey
Diffstat (limited to 'client/src/assets/player/settings-menu-item.ts')
-rw-r--r--client/src/assets/player/settings-menu-item.ts6
1 files changed, 5 insertions, 1 deletions
diff --git a/client/src/assets/player/settings-menu-item.ts b/client/src/assets/player/settings-menu-item.ts
index f6cf6d0f3..665ce6fc2 100644
--- a/client/src/assets/player/settings-menu-item.ts
+++ b/client/src/assets/player/settings-menu-item.ts
@@ -41,6 +41,10 @@ class SettingsMenuItem extends MenuItem {
41 // Voodoo magic for IOS 41 // Voodoo magic for IOS
42 setTimeout(() => { 42 setTimeout(() => {
43 this.build() 43 this.build()
44
45 // Update on rate change
46 player.on('ratechange', this.submenuClickHandler)
47
44 this.reset() 48 this.reset()
45 }, 0) 49 }, 0)
46 }) 50 })
@@ -60,7 +64,7 @@ class SettingsMenuItem extends MenuItem {
60 target = event.currentTarget 64 target = event.currentTarget
61 } 65 }
62 66
63 if (target.classList.contains('vjs-back-button')) { 67 if (target && target.classList.contains('vjs-back-button')) {
64 this.loadMainMenu() 68 this.loadMainMenu()
65 return 69 return
66 } 70 }