Fix mobile event

This commit is contained in:
Harvey committed 2022-01-10 09:35:46 +08:00
1 parent 5c4d71cc7a
commit 53da53c35a
7 files changed
+175 -112

No files matched your search

+4 -2
View File
@@ -1,4 +1,4 @@
import { queryAll } from './utils';
import { queryAll, isMobile } from './utils';
import Component from './utils/component';
export default class Info extends Component {
@@ -6,7 +6,9 @@ export default class Info extends Component {
super(art);
this.name = 'info';
art.once('ready', () => {
this.init();
if (!isMobile) {
this.init();
}
});
}