taken from https://github.com/Linkcube/svelte-audio-controls ISC License --> { if (seeking && pendingSeekTime != null) { audio.currentTime = pendingSeekTime; currentTime = pendingSeekTime; updateTooltipText(pendingSeekTime); pendingSeekTime = null; } seeking = volumeSeeking = false; }} onmousemove={trackMouse} /> {#if display}
{ seeking = true; updateSeekVisual(e); }} onmouseenter={() => (showTooltip = true)} onmouseleave={() => (showTooltip = false)} style="--primary-color:{barPrimaryColor}; --secondary-color:{barSecondaryColor}" class="song-progress" >
{formatSeconds(currentTime, duration >= 3600)}/{formatSeconds(duration)}
(volumeSeeking = true)} onclick={seekVolume} style="--primary-color:{barPrimaryColor}; --secondary-color:{barSecondaryColor}" class="volume-progress" > {#if !disableTooltip && (inlineTooltip || showTooltip)}
{#if showTooltip} {seekText}
{seekTrack} {:else if duration > 3600} --:--:-- {:else} --:-- {/if}
{/if}
{/if}