diff options
Diffstat (limited to 'client/src/assets/player/settings-menu-item.ts')
-rw-r--r-- | client/src/assets/player/settings-menu-item.ts | 6 |
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 | } |