优化事件互斥关系

This commit is contained in:
Harvey committed 2020-05-15 17:30:50 +08:00
1 parent cf22fb0535
commit 634e776d49
8 files changed
+41 -27

No files matched your search

-4
View File
@@ -114,8 +114,6 @@ function customPip(art, player) {
const $body = document.body;
setStyle($player, 'top', `${$body.clientHeight - player.height - 50}px`);
setStyle($player, 'left', `${$body.clientWidth - player.width - 50}px`);
player.fullscreen = false;
player.fullscreenWeb = false;
player.aspectRatio = false;
player.playbackRate = false;
art.emit('pipChange', true);
@@ -124,8 +122,6 @@ function customPip(art, player) {
removeClass($player, 'art-pip');
setStyle($player, 'top', null);
setStyle($player, 'left', null);
player.fullscreen = false;
player.fullscreenWeb = false;
player.aspectRatio = false;
player.playbackRate = false;
player.autoSize = true;