client: make mod patterns display when seeking on stopped track
All checks were successful
ci/woodpecker/push/build Pipeline was successful
ci/woodpecker/push/lint-client Pipeline was successful
ci/woodpecker/push/lint-backend Pipeline was successful
ci/woodpecker/push/lint-sw Pipeline was successful
ci/woodpecker/push/lint-foundkey-js Pipeline was successful
ci/woodpecker/push/test Pipeline was successful

This commit is contained in:
Puniko 2022-12-29 21:37:33 +01:00 committed by Johann150
parent ed27f61a4d
commit 3a9d283630
Signed by: Johann150
GPG key ID: 9EE6577A2A06F8F1

View file

@ -85,6 +85,7 @@ player.value.load(props.module.url).then((result) => {
buffer = result;
try {
player.value.play(buffer);
progress.value.max = player.value.duration();
display();
} catch (e) {
console.warn(e);
@ -138,8 +139,15 @@ function initSeek() {
}
function performSeek() {
const noNode = !player.value.currentPlayingNode;
if (noNode) {
player.value.play(buffer);
}
player.value.seek(position.value);
display();
if (noNode) {
player.value.stop();
}
isSeeking = false;
}