mirror of
https://github.com/Dvorinka/swingmusic-extended.git
synced 2026-06-04 12:33:03 +00:00
move progress bar and hot keys to new components
This commit is contained in:
@@ -0,0 +1,20 @@
|
||||
<template>
|
||||
<input
|
||||
id="progress"
|
||||
type="range"
|
||||
:value="pos"
|
||||
min="0"
|
||||
max="1000"
|
||||
@change="seek()"
|
||||
/>
|
||||
</template>
|
||||
|
||||
<script setup>
|
||||
import { ref } from "vue";
|
||||
import playAudio from "../../composables/playAudio";
|
||||
const pos = ref(playAudio.pos);
|
||||
|
||||
const seek = () => {
|
||||
playAudio.seek(document.getElementById("progress").value);
|
||||
};
|
||||
</script>
|
||||
Reference in New Issue
Block a user