feat(buffer-progress): use 3d translation
Part-of: <https://dev.funkwhale.audio/funkwhale/funkwhale/-/merge_requests/2346>
This commit is contained in:
parent
dbc85d988e
commit
fe769b2321
|
@ -354,7 +354,7 @@ if (!isWebGLSupported) {
|
||||||
>
|
>
|
||||||
<div
|
<div
|
||||||
class="buffer bar"
|
class="buffer bar"
|
||||||
:style="{ 'transform': `translateX(${bufferProgress - 100}%)` }"
|
:style="{ 'transform': `translate3d(${bufferProgress - 100}%, 0, 0)` }"
|
||||||
/>
|
/>
|
||||||
<div class="position bar" />
|
<div class="position bar" />
|
||||||
</div>
|
</div>
|
||||||
|
|
|
@ -128,8 +128,10 @@ export const useTracks = createGlobalState(() => {
|
||||||
soundCache.get(currentTrack.value.id)
|
soundCache.get(currentTrack.value.id)
|
||||||
}
|
}
|
||||||
|
|
||||||
|
// Add track to the sound cache and remove from the promise cache
|
||||||
soundCache.set(track.id, sound)
|
soundCache.set(track.id, sound)
|
||||||
soundPromises.delete(track.id)
|
soundPromises.delete(track.id)
|
||||||
|
|
||||||
return sound
|
return sound
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
Loading…
Reference in New Issue