fix seek calculation
This commit is contained in:
parent
c7a3e98e91
commit
18d70f5c2e
@ -82,7 +82,7 @@ export default Vue.extend({
|
|||||||
]),
|
]),
|
||||||
seek(event: any) {
|
seek(event: any) {
|
||||||
if (event.target) {
|
if (event.target) {
|
||||||
const width = event.target.clientWidth;
|
const width = event.currentTarget.clientWidth;
|
||||||
const value = event.offsetX / width;
|
const value = event.offsetX / width;
|
||||||
return this.$store.dispatch("player/seek", value);
|
return this.$store.dispatch("player/seek", value);
|
||||||
}
|
}
|
||||||
|
Loading…
x
Reference in New Issue
Block a user