完成迷你播放器功能

This commit is contained in:
Harvey Zack committed 2018-11-06 13:58:28 +08:00
1 parent a257e93c0f
commit c80e623012
20 files changed
+1528 -48

No files matched your search

+8 -1
View File
@@ -22,10 +22,17 @@ export default class Events {
const hideCursor = debounce(() => {
$player.classList.add('artplayer-hide-cursor');
if (this.art.player.fullscreenState || this.art.player.fullscreenWebState) {
$player.classList.remove('artplayer-hover');
this.art.controls.hide();
}
}, 5000);
this.proxy($player, 'mousemove', () => {
$player.classList.remove('artplayer-hide-cursor');
hideCursor();
this.art.controls.show();
if (!this.art.player.pipState) {
hideCursor();
}
});
}