aboutsummaryrefslogtreecommitdiffhomepage
path: root/client/src/assets/player/videojs-components
diff options
context:
space:
mode:
authorChocobozzz <me@florianbigard.com>2019-08-07 10:17:19 +0200
committerChocobozzz <me@florianbigard.com>2019-08-07 12:07:58 +0200
commitd1f21ebba640ccec21ca96496d0319f7511ac0b4 (patch)
tree2318cc823ac60f2646bf14cab0680697dd6a8348 /client/src/assets/player/videojs-components
parent327b331889861a031500cb91f698e370f14e3153 (diff)
downloadPeerTube-d1f21ebba640ccec21ca96496d0319f7511ac0b4.tar.gz
PeerTube-d1f21ebba640ccec21ca96496d0319f7511ac0b4.tar.zst
PeerTube-d1f21ebba640ccec21ca96496d0319f7511ac0b4.zip
Fix control bar inactive timeout
Diffstat (limited to 'client/src/assets/player/videojs-components')
-rw-r--r--client/src/assets/player/videojs-components/settings-menu-button.ts4
1 files changed, 4 insertions, 0 deletions
diff --git a/client/src/assets/player/videojs-components/settings-menu-button.ts b/client/src/assets/player/videojs-components/settings-menu-button.ts
index 3e8b5fc94..b700f4be6 100644
--- a/client/src/assets/player/videojs-components/settings-menu-button.ts
+++ b/client/src/assets/player/videojs-components/settings-menu-button.ts
@@ -122,6 +122,8 @@ class SettingsButton extends Button {
122 } 122 }
123 123
124 showDialog () { 124 showDialog () {
125 this.player_.peertube().onMenuOpen()
126
125 this.menu.el_.style.opacity = '1' 127 this.menu.el_.style.opacity = '1'
126 this.dialog.show() 128 this.dialog.show()
127 129
@@ -129,6 +131,8 @@ class SettingsButton extends Button {
129 } 131 }
130 132
131 hideDialog () { 133 hideDialog () {
134 this.player_.peertube().onMenuClosed()
135
132 this.dialog.hide() 136 this.dialog.hide()
133 this.setDialogSize(this.getComponentSize(this.menu)) 137 this.setDialogSize(this.getComponentSize(this.menu))
134 this.menu.el_.style.opacity = '1' 138 this.menu.el_.style.opacity = '1'