This commit is contained in:
Harvey Zack committed 2018-11-09 15:37:05 +08:00
1 parent 4fbb3442e0
commit 650d1abef3
6 files changed
+26 -4

No files matched your search

+5
View File
@@ -16,6 +16,10 @@ export default function pipMix(art, player) {
Object.defineProperty(player, 'pipEnabled', {
value: () => {
if (player.autoSizeState) {
player.autoSizeRemove();
}
if (!draggie) {
draggie = new Draggabilly($player, {
handle: '.artplayer-pip-header'
@@ -34,6 +38,7 @@ export default function pipMix(art, player) {
setStyle($player, 'left', `${cachePos.x}px`);
setStyle($player, 'top', `${cachePos.y}px`);
}
$player.classList.add('artplayer-pip');
player.fullscreenExit();
player.fullscreenWebExit();