mirror of
https://github.com/TeamPiped/Piped.git
synced 2025-01-09 14:26:59 +00:00
Listen on the actual seekbar to calculate
This commit is contained in:
parent
7ce0c0fcc0
commit
974324fad7
@ -715,7 +715,7 @@ export default {
|
||||
},
|
||||
setupSeekbarPreview() {
|
||||
if (!this.video.previewFrames) return;
|
||||
let seekBar = document.querySelector(".shaka-seek-bar-container");
|
||||
let seekBar = document.querySelector(".shaka-seek-bar");
|
||||
// load the thumbnail preview when the user moves over the seekbar
|
||||
seekBar.addEventListener("mousemove", e => {
|
||||
const position = (e.offsetX / e.target.offsetWidth) * this.video.duration;
|
||||
|
Loading…
Reference in New Issue
Block a user