mirror of
https://github.com/GiriNeko/YesPlayMusic.git
synced 2025-12-16 13:17:46 +00:00
Fix ev.target.children.forEach is not a function (#280)
This commit is contained in:
parent
0c2098d01f
commit
8db5af5b7a
1 changed files with 4 additions and 2 deletions
|
|
@ -276,7 +276,9 @@ export default {
|
||||||
this.$parent.$refs.player.player.seek(value);
|
this.$parent.$refs.player.player.seek(value);
|
||||||
},
|
},
|
||||||
blurEffect(ev) {
|
blurEffect(ev) {
|
||||||
ev.target.children.forEach((el) => {
|
for (let i = 0; i < ev.target.children.length; i++) {
|
||||||
|
const el = ev.target.children[i];
|
||||||
|
|
||||||
const distanceToCenterPercentage =
|
const distanceToCenterPercentage =
|
||||||
Math.abs(
|
Math.abs(
|
||||||
el.getBoundingClientRect().y +
|
el.getBoundingClientRect().y +
|
||||||
|
|
@ -290,7 +292,7 @@ export default {
|
||||||
"--func-val",
|
"--func-val",
|
||||||
isNaN(functionedEffectValue) ? "" : functionedEffectValue.toFixed(2)
|
isNaN(functionedEffectValue) ? "" : functionedEffectValue.toFixed(2)
|
||||||
);
|
);
|
||||||
});
|
}
|
||||||
},
|
},
|
||||||
setLyricsInterval() {
|
setLyricsInterval() {
|
||||||
this.lyricsInterval = setInterval(() => {
|
this.lyricsInterval = setInterval(() => {
|
||||||
|
|
|
||||||
Loading…
Add table
Add a link
Reference in a new issue