We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 743b3d0 commit 4c079a6Copy full SHA for 4c079a6
src/js/controller.js
@@ -13,6 +13,12 @@ class Controller {
13
this.player.container.addEventListener('click', () => {
14
this.setAutoHide();
15
});
16
+ this.player.on('play', () => {
17
+ this.setAutoHide();
18
+ });
19
+ this.player.on('pause', () => {
20
21
22
}
23
24
this.initPlayButton();
@@ -217,7 +223,7 @@ class Controller {
217
223
this.show();
218
224
clearTimeout(this.autoHideTimer);
219
225
this.autoHideTimer = setTimeout(() => {
220
- if (this.player.video.played.length && !this.disableAutoHide) {
226
+ if (this.player.video.played.length && !this.player.paused && !this.disableAutoHide) {
221
227
this.hide();
222
228
229
}, 3000);
0 commit comments