feat(buffer-progress): use 3d translation

Part-of: <https://dev.funkwhale.audio/funkwhale/funkwhale/-/merge_requests/2346>
environments/review-docs-nginx-aqlin2/deployments/17397
Kasper Seweryn 2023-03-13 13:10:38 +01:00 zatwierdzone przez Marge
rodzic dbc85d988e
commit fe769b2321
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
}