Fix ev.target.children.forEach is not a function (#280)

This commit is contained in:
MrWillCom 2021-02-13 14:18:43 +00:00
parent 0c2098d01f
commit 8db5af5b7a

View File

@ -276,7 +276,9 @@ export default {
this.$parent.$refs.player.player.seek(value);
},
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 =
Math.abs(
el.getBoundingClientRect().y +
@ -290,7 +292,7 @@ export default {
"--func-val",
isNaN(functionedEffectValue) ? "" : functionedEffectValue.toFixed(2)
);
});
}
},
setLyricsInterval() {
this.lyricsInterval = setInterval(() => {