Browse Source

Fix hidden cursor on video's start

master
Eduard Kuzmenko 3 years ago
parent
commit
ce189ee115
  1. 8
      src/lib/mediaPlayer.ts

8
src/lib/mediaPlayer.ts

@ -422,11 +422,11 @@ export default class VideoPlayer extends ControlsHover { @@ -422,11 +422,11 @@ export default class VideoPlayer extends ControlsHover {
listenerSetter.add(video)('play', () => {
wrapper.classList.add('played');
}, {once: true});
listenerSetter.add(video)('play', () => {
this.hideControls(true);
});
listenerSetter.add(video)('play', () => {
this.hideControls(true);
});
}, {once: true});
listenerSetter.add(video)('pause', () => {
this.showControls(false);

Loading…
Cancel
Save