fix seek calculation

This commit is contained in:
Thomas Amland 2020-08-04 18:56:36 +02:00
parent c7a3e98e91
commit 18d70f5c2e

View File

@ -82,7 +82,7 @@ export default Vue.extend({
]),
seek(event: any) {
if (event.target) {
const width = event.target.clientWidth;
const width = event.currentTarget.clientWidth;
const value = event.offsetX / width;
return this.$store.dispatch("player/seek", value);
}