|
@@ -1124,7 +1124,7 @@ export default {
|
|
|
drawPlayId: null,
|
|
|
pCanvas: null,
|
|
|
pCtx: null,
|
|
|
- zoomNumber: 1500,
|
|
|
+ zoomNumber: 0,
|
|
|
lyzoomNumber: 1500,
|
|
|
xunhunShow: false,
|
|
|
regionData: null,
|
|
@@ -1314,11 +1314,12 @@ export default {
|
|
|
var down = true;
|
|
|
down = ev.wheelDelta ? ev.wheelDelta < 0 : ev.detail > 0;
|
|
|
if (down) {
|
|
|
- console.log("鼠标滚轮向下---------");
|
|
|
- that.zoomNumber = that.zoomNumber + 10;
|
|
|
+ if (that.zoomNumber <= 0) {
|
|
|
+ return;
|
|
|
+ }
|
|
|
+ that.zoomNumber = that.zoomNumber - 100;
|
|
|
} else {
|
|
|
- console.log("鼠标滚轮向上++++++++++");
|
|
|
- that.zoomNumber = that.zoomNumber - 10;
|
|
|
+ that.zoomNumber = that.zoomNumber + 100;
|
|
|
}
|
|
|
that.wavesurfer_big.zoom(Number(that.zoomNumber));
|
|
|
},
|
|
@@ -1329,11 +1330,12 @@ export default {
|
|
|
var down = true;
|
|
|
down = ev.wheelDelta ? ev.wheelDelta < 0 : ev.detail > 0;
|
|
|
if (down) {
|
|
|
- console.log("鼠标滚轮向下---------");
|
|
|
- that.lyzoomNumber = that.lyzoomNumber + 10;
|
|
|
+ if (that.lyzoomNumber <= 0) {
|
|
|
+ return;
|
|
|
+ }
|
|
|
+ that.lyzoomNumber = that.lyzoomNumber - 100;
|
|
|
} else {
|
|
|
- console.log("鼠标滚轮向上++++++++++");
|
|
|
- that.lyzoomNumber = that.lyzoomNumber - 10;
|
|
|
+ that.lyzoomNumber = that.lyzoomNumber + 100;
|
|
|
}
|
|
|
that.wavesurfer_ly.zoom(Number(that.lyzoomNumber));
|
|
|
},
|
|
@@ -1383,7 +1385,7 @@ export default {
|
|
|
loop: false,
|
|
|
drag: false,
|
|
|
resize: false,
|
|
|
- color: "rgba(0, 180, 0, 0.3)",
|
|
|
+ color: "rgba(0, 180, 0, 0.5)",
|
|
|
},
|
|
|
],
|
|
|
})
|
|
@@ -1412,7 +1414,7 @@ export default {
|
|
|
loop: false,
|
|
|
drag: false,
|
|
|
resize: false,
|
|
|
- color: "rgba(254, 255, 255, 0.4)",
|
|
|
+ // color: "rgba(254, 255, 255, 0.4)",
|
|
|
});
|
|
|
}
|
|
|
|
|
@@ -1427,7 +1429,7 @@ export default {
|
|
|
that.wavesurfer_big.on("ready", function (e) {
|
|
|
if (!that.regionData) {
|
|
|
that.wavesurfer_big.enableDragSelection({
|
|
|
- color: "rgba(0, 180, 0, 0.3)",
|
|
|
+ color: "rgba(0, 180, 0, 0.5)",
|
|
|
});
|
|
|
that.wavesurfer_big.clearRegions(); // 音频加载完成
|
|
|
}
|
|
@@ -1438,7 +1440,7 @@ export default {
|
|
|
that.playMusic("play");
|
|
|
}
|
|
|
}
|
|
|
- that.wavesurfer_big.zoom(Number(1500));
|
|
|
+ that.wavesurfer_big.zoom(0);
|
|
|
that.loading = false;
|
|
|
that.$forceUpdate();
|
|
|
});
|