mirror of
https://github.com/zhw2590582/ArtPlayer.git
synced 2026-10-24 14:41:20 -08:00
bugfix
This commit is contained in:
1 parent
c25038b74c
commit
ae548e93c8
18 files changed
+176
-101
No files matched your search
@@ -5,18 +5,22 @@ export default function mousemoveInitInit(art, events) {
|
||||
|
||||
const hideCursor = debounce(() => {
|
||||
$player.classList.add('artplayer-hide-cursor');
|
||||
if (art.player.fullscreenState || art.player.fullscreenWebState) {
|
||||
$player.classList.remove('artplayer-hover');
|
||||
art.controls.hide();
|
||||
}
|
||||
}, 5000);
|
||||
|
||||
const hideControl = debounce(() => {
|
||||
$player.classList.remove('artplayer-hover');
|
||||
art.controls.hide();
|
||||
}, 5000);
|
||||
|
||||
art.on('hoverleave', () => {
|
||||
hideControl();
|
||||
hideCursor.clearTimeout();
|
||||
$player.classList.remove('artplayer-hide-cursor');
|
||||
});
|
||||
|
||||
events.proxy($player, 'mousemove', () => {
|
||||
hideControl.clearTimeout();
|
||||
art.controls.show();
|
||||
$player.classList.remove('artplayer-hide-cursor');
|
||||
art.controls.show();
|
||||
if (!art.player.pipState) {
|
||||
|
||||
Reference in new issue
Block a user