mirror of
https://github.com/zhw2590582/ArtPlayer.git
synced 2026-10-26 17:01:20 -08:00
修复弹幕自适应
This commit is contained in:
1 parent
b70c11ede6
commit
35ac59dc45
8 files changed
+44
-38
No files matched your search
@@ -13,6 +13,7 @@ export default function fullscreenMix(art, player) {
|
||||
screenfull.request($player).then(() => {
|
||||
addClass($player, 'art-fullscreen');
|
||||
player.aspectRatioReset = true;
|
||||
art.emit('resize');
|
||||
art.emit('fullscreenChange', true);
|
||||
});
|
||||
} else {
|
||||
@@ -20,6 +21,7 @@ export default function fullscreenMix(art, player) {
|
||||
removeClass($player, 'art-fullscreen');
|
||||
player.aspectRatioReset = true;
|
||||
player.autoSize = art.option.autoSize;
|
||||
art.emit('resize');
|
||||
art.emit('fullscreenChange', false);
|
||||
});
|
||||
}
|
||||
|
||||
Reference in new issue
Block a user