mirror of
https://github.com/zhw2590582/ArtPlayer.git
synced 2026-10-25 08:01:20 -08:00
修复全屏时画面比例不对问题
This commit is contained in:
1 parent
c16f2647e7
commit
4f3d5e0240
5 files changed
+9
-17
No files matched your search
@@ -38,7 +38,7 @@ export default function fullscreenMix(art, player) {
|
||||
}
|
||||
$player.classList.add('artplayer-fullscreen');
|
||||
screenfull.request($player);
|
||||
player.aspectRatio('default');
|
||||
player.aspectRatioReset();
|
||||
art.emit('fullscreen:enabled');
|
||||
},
|
||||
});
|
||||
@@ -49,7 +49,7 @@ export default function fullscreenMix(art, player) {
|
||||
player.fullscreenWebExit();
|
||||
$player.classList.remove('artplayer-fullscreen');
|
||||
screenfull.exit();
|
||||
player.aspectRatio('default');
|
||||
player.aspectRatioReset();
|
||||
art.emit('fullscreen:exit');
|
||||
}
|
||||
},
|
||||
|
||||
Reference in new issue
Block a user