优化手机端UI

This commit is contained in:
Harvey committed 2020-05-15 10:28:38 +08:00
1 parent 19a894fcb6
commit beea013daf
16 files changed
+249 -129

No files matched your search

+9 -1
View File
@@ -1,7 +1,11 @@
import { addClass, removeClass } from '../utils';
export default function hoverInit(art, events) {
const { $player } = art.template;
const {
controls,
template: { $player },
} = art;
events.hover(
$player,
() => {
@@ -13,4 +17,8 @@ export default function hoverInit(art, events) {
art.emit('hoverleave');
},
);
art.on('hoverleave', () => {
controls.delayHide();
});
}