add autoHeight option

This commit is contained in:
Harvey committed 2021-12-31 13:30:59 +08:00
1 parent f890f83a61
commit 6cb75858bb
16 files changed
+85 -3

No files matched your search

@@ -5,6 +5,7 @@ export default function resizeInit(art, events) {
const resizeFn = throttle(() => {
if (player.normalSize) {
player.autoHeight = option.autoHeight;
player.autoSize = option.autoSize;
}
player.aspectRatioReset = true;