mirror of
https://github.com/zhw2590582/ArtPlayer.git
synced 2026-10-24 14:41:20 -08:00
update aspectRatioReset
This commit is contained in:
1 parent
61cf68f0bc
commit
ad8c50ddd7
9 files changed
+91
-93
No files matched your search
@@ -20,14 +20,14 @@ export default function fullscreenMix(art) {
|
||||
async set(value) {
|
||||
if (value) {
|
||||
art.normalSize = 'fullscreen';
|
||||
art.aspectRatioReset = true;
|
||||
art.aspectRatioReset();
|
||||
art.autoSize = false;
|
||||
await screenfull.request($player);
|
||||
addClass($player, 'art-fullscreen');
|
||||
art.emit('resize');
|
||||
notice.show = '';
|
||||
} else {
|
||||
art.aspectRatioReset = true;
|
||||
art.aspectRatioReset();
|
||||
art.autoSize = art.option.autoSize;
|
||||
await screenfull.exit();
|
||||
removeClass($player, 'art-fullscreen');
|
||||
|
||||
Reference in new issue
Block a user