mirror of
https://github.com/zhw2590582/ArtPlayer.git
synced 2026-10-27 01:21:20 -08:00
修复全屏时画面比例不对问题
This commit is contained in:
1 parent
c16f2647e7
commit
4f3d5e0240
5 files changed
+9
-17
No files matched your search
@@ -15,10 +15,6 @@ export default function aspectRatioMix(art, player) {
|
||||
value: ratio => {
|
||||
const ratioList = ['default', '4:3', '16:9'];
|
||||
errorHandle(ratioList.includes(ratio), `'aspectRatio' only accept ${ratioList.toString()} as parameters`);
|
||||
|
||||
if (ratio === $player.dataset.aspectRatio) {
|
||||
return;
|
||||
}
|
||||
|
||||
if (ratio === 'default') {
|
||||
player.aspectRatioRemove();
|
||||
|
||||
Reference in new issue
Block a user