修复迷你播放器的坐标错误

This commit is contained in:
Harvey Zack committed 2019-05-08 09:14:25 +08:00
1 parent 4b207c6bfb
commit eb34a39429
6 files changed
+5 -7

No files matched your search

+1 -1
View File
@@ -81,7 +81,7 @@ function customPip(art, player) {
destroyEvents.push(() => {
draggie.destroy();
});
} else {
} else if (cachePos && cachePos.x !== 0 && cachePos.y !== 0) {
setStyle($player, 'left', `${cachePos.x}px`);
setStyle($player, 'top', `${cachePos.y}px`);
}
-2
View File
@@ -38,8 +38,6 @@
&.artplayer-pip {
position: fixed;
z-index: 9999;
right: 20px;
bottom: 20px;
width: 400px;
height: 225px;
box-shadow: 0 2px 5px 0 rgba(0,0,0,0.16), 0 3px 6px 0 rgba(0,0,0,0.20);