mirror of
https://github.com/zhw2590582/ArtPlayer.git
synced 2026-10-29 11:11:20 -08:00
add documentInit
This commit is contained in:
1 parent
d531c41735
commit
c4252b21b5
11 files changed
+60
-67
No files matched your search
@@ -59,14 +59,14 @@ export default function volume(option) {
|
||||
art.volume = getVolumeFromEvent(event);
|
||||
});
|
||||
|
||||
proxy(document, 'mousemove', (event) => {
|
||||
art.on('document:mousemove', (event) => {
|
||||
if (isDroging) {
|
||||
art.muted = false;
|
||||
art.volume = getVolumeFromEvent(event);
|
||||
}
|
||||
});
|
||||
|
||||
proxy(document, 'mouseup', () => {
|
||||
art.on('document:mouseup', () => {
|
||||
if (isDroging) {
|
||||
isDroging = false;
|
||||
}
|
||||
|
||||
Reference in new issue
Block a user