|
@@ -1,16 +1,16 @@
|
|
<template>
|
|
<template>
|
|
<transition-group name="track-score" tag="div">
|
|
<transition-group name="track-score" tag="div">
|
|
- <template v-for="(track, index) in trackList" :key="index">
|
|
|
|
|
|
+ <template v-for="(track, index) in trackList">
|
|
<div
|
|
<div
|
|
v-if="store.shouldShowTrack"
|
|
v-if="store.shouldShowTrack"
|
|
class="score-container"
|
|
class="score-container"
|
|
:class="[focusedTrack(track) && 'score-animation']"
|
|
:class="[focusedTrack(track) && 'score-animation']"
|
|
:style="computeTopAndLeft(track)"
|
|
:style="computeTopAndLeft(track)"
|
|
- :key="'key' + track.mainNumber + track.subNumber + track.offsetY"
|
|
|
|
|
|
+ :key="`key-${track.mainNumber}-${track.subNumber}-${track.offsetY}-${track.offsetX}`"
|
|
>
|
|
>
|
|
<span
|
|
<span
|
|
class="tw-m-auto"
|
|
class="tw-m-auto"
|
|
- :id="'a' + track.mainNumber + track.subNumber + track.offsetY"
|
|
|
|
|
|
+ :id="`a-${track.mainNumber}-${track.subNumber}-${track.offsetY}-${track.offsetX}`"
|
|
>
|
|
>
|
|
{{ track.score }}
|
|
{{ track.score }}
|
|
</span>
|
|
</span>
|
|
@@ -77,7 +77,7 @@ watch(
|
|
if (topTrack) {
|
|
if (topTrack) {
|
|
document
|
|
document
|
|
.querySelector(
|
|
.querySelector(
|
|
- `#a${topTrack.mainNumber + topTrack.subNumber + topTrack.offsetY}`
|
|
|
|
|
|
+ `#a-${topTrack.mainNumber}-${topTrack.subNumber}-${topTrack.offsetY}-${topTrack.offsetX}`
|
|
)
|
|
)
|
|
?.scrollIntoView({ behavior: "smooth" });
|
|
?.scrollIntoView({ behavior: "smooth" });
|
|
}
|
|
}
|