feat(buffer-progress): use 3d translation

Part-of: <https://dev.funkwhale.audio/funkwhale/funkwhale/-/merge_requests/2346>
environments/review-docs-fix-d-jlladr/deployments/17321
Kasper Seweryn 2023-03-13 13:10:38 +01:00 zatwierdzone przez Georg krause
rodzic 2468ef3fa1
commit b55aace00d
2 zmienionych plików z 3 dodań i 1 usunięć

Wyświetl plik

@ -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>

Wyświetl plik

@ -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
}