优化互斥关系

This commit is contained in:
Harvey committed 2020-09-15 16:14:27 +08:00
1 parent abf60cfef6
commit 5cbb8bd1f3
16 files changed
+242 -29

No files matched your search

@@ -19,6 +19,7 @@ export default function aspectRatioMix(art, player) {
`'aspectRatio' only accept ${ratioList.toString()} as parameters`,
);
player.rotate = 0;
if (ratio === 'default') {
player.aspectRatio = false;
} else {
@@ -48,7 +49,7 @@ export default function aspectRatioMix(art, player) {
setStyle($video, 'height', null);
setStyle($video, 'padding', null);
delete $player.dataset.aspectRatio;
art.emit('aspectRatio');
art.emit('aspectRatio', 'default');
}
},
});