mirror of
https://github.com/zhw2590582/ArtPlayer.git
synced 2026-10-24 14:41:20 -08:00
Fix some notice
This commit is contained in:
1 parent
1de2d2aaed
commit
c9040e5eec
5 files changed
+36
-9
No files matched your search
@@ -1,13 +1,14 @@
|
||||
import { throttle } from '../utils';
|
||||
|
||||
export default function resizeInit(art, events) {
|
||||
const { option } = art;
|
||||
const { notice, option } = art;
|
||||
|
||||
const resizeFn = throttle(() => {
|
||||
if (art.normalSize) {
|
||||
art.autoSize = option.autoSize;
|
||||
}
|
||||
art.aspectRatioReset = true;
|
||||
notice.show = '';
|
||||
art.emit('resize');
|
||||
}, 500);
|
||||
|
||||
|
||||
Reference in new issue
Block a user