update ci

This commit is contained in:
Harvey Zack committed 2018-11-22 09:00:50 +08:00
1 parent bf0f7bfcaa
commit aba956d4a4
7 files changed
+28 -18

No files matched your search

@@ -2,7 +2,7 @@ import { debounce } from '../utils';
export default function mousemoveInitInit(art, events) {
const {
refs: { $player },
refs: { $player, $video },
} = art;
const autoHide = debounce(() => {
@@ -17,11 +17,11 @@ export default function mousemoveInitInit(art, events) {
}
});
events.proxy($player, 'mousemove', () => {
events.proxy($player, 'mousemove', event => {
autoHide.clearTimeout();
$player.classList.remove('artplayer-hide-cursor');
art.controls.show();
if (!art.player.pipState && art.isPlaying) {
if (!art.player.pipState && art.isPlaying && event.target === $video) {
autoHide();
}
});