rename moveInit

This commit is contained in:
Harvey Zack committed 2023-04-18 00:03:59 +08:00
1 parent 455bd807a7
commit 3ab2e96144
2 files changed
+3 -3

No files matched your search

+2 -2
View File
@@ -1,7 +1,7 @@
import { ArtPlayerError } from '../utils/error'; import { ArtPlayerError } from '../utils/error';
import clickInit from './clickInit'; import clickInit from './clickInit';
import hoverInit from './hoverInit'; import hoverInit from './hoverInit';
import mouseMoveInit from './mouseMoveInit'; import moveInit from './moveInit';
import resizeInit from './resizeInit'; import resizeInit from './resizeInit';
import gestureInit from './gestureInit'; import gestureInit from './gestureInit';
import viewInit from './viewInit'; import viewInit from './viewInit';
@@ -17,7 +17,7 @@ export default class Events {
if (art.whitelist.state) { if (art.whitelist.state) {
clickInit(art, this); clickInit(art, this);
hoverInit(art, this); hoverInit(art, this);
mouseMoveInit(art, this); moveInit(art, this);
resizeInit(art, this); resizeInit(art, this);
gestureInit(art, this); gestureInit(art, this);
viewInit(art, this); viewInit(art, this);
@@ -1,4 +1,4 @@
export default function mousemoveInitInit(art, events) { export default function moveInit(art, events) {
const { $player } = art.template; const { $player } = art.template;
events.proxy($player, 'mousemove', (event) => { events.proxy($player, 'mousemove', (event) => {