feat(buffer-progress): use 3d translation

Part-of: <https://dev.funkwhale.audio/funkwhale/funkwhale/-/merge_requests/2346>
This commit is contained in:
Kasper Seweryn 2023-03-13 13:10:38 +01:00 committed by Georg krause
parent 2468ef3fa1
commit b55aace00d
2 changed files with 3 additions and 1 deletions

View File

@ -354,7 +354,7 @@ if (!isWebGLSupported) {
>
<div
class="buffer bar"
:style="{ 'transform': `translateX(${bufferProgress - 100}%)` }"
:style="{ 'transform': `translate3d(${bufferProgress - 100}%, 0, 0)` }"
/>
<div class="position bar" />
</div>

View File

@ -128,8 +128,10 @@ export const useTracks = createGlobalState(() => {
soundCache.get(currentTrack.value.id)
}
// Add track to the sound cache and remove from the promise cache
soundCache.set(track.id, sound)
soundPromises.delete(track.id)
return sound
}