mirror of
https://github.com/zhw2590582/ArtPlayer.git
synced 2026-10-28 02:01:20 -08:00
rename moveInit
This commit is contained in:
1 parent
455bd807a7
commit
3ab2e96144
2 files changed
+3
-3
No files matched your search
@@ -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
-1
@@ -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) => {
|
||||||
Reference in new issue
Block a user