add documentInit

This commit is contained in:
Harvey Zack committed 2023-04-17 22:04:57 +08:00
1 parent d531c41735
commit c4252b21b5
11 files changed
+60 -67

No files matched your search

+2 -2
View File
@@ -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;
}