mirror of
https://github.com/zhw2590582/ArtPlayer.git
synced 2026-10-26 17:01:20 -08:00
bugfix
This commit is contained in:
1 parent
a0175e845f
commit
e528465a6e
5 files changed
+153
-154
No files matched your search
@@ -9,13 +9,12 @@ export default function setting(option) {
|
||||
events: { proxy },
|
||||
icons,
|
||||
i18n,
|
||||
setting,
|
||||
} = art;
|
||||
|
||||
append($control, icons.setting);
|
||||
|
||||
proxy($control, 'click', () => {
|
||||
setting.toggle = true;
|
||||
art.setting.toggle = true;
|
||||
});
|
||||
|
||||
art.on('setting', (value) => {
|
||||
|
||||
@@ -1,14 +1,14 @@
|
||||
import { throttle } from '../utils';
|
||||
|
||||
export default function resizeInit(art, events) {
|
||||
const { notice, option } = art;
|
||||
const { option } = art;
|
||||
|
||||
const resizeFn = throttle(() => {
|
||||
if (art.normalSize) {
|
||||
art.autoSize = option.autoSize;
|
||||
}
|
||||
art.aspectRatioReset = true;
|
||||
notice.show = '';
|
||||
art.notice.show = '';
|
||||
art.emit('resize');
|
||||
}, art.constructor.RESIZE_TIME);
|
||||
|
||||
|
||||
Reference in new issue
Block a user