mirror of
https://github.com/qier222/YesPlayMusic.git
synced 2024-11-22 15:10:24 +08:00
Merge pull request #285 from MrWillCom/issue-280
Fix ev.target.children.forEach is not a function (#280)
This commit is contained in:
commit
a75c039a40
|
@ -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(() => {
|
||||
|
|
Loading…
Reference in New Issue
Block a user