mirror of
				https://github.com/TeamPiped/Piped.git
				synced 2025-10-31 04:32:01 +00:00 
			
		
		
		
	Listen on the actual seekbar to calculate
This commit is contained in:
		| @@ -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; | ||||
|   | ||||
		Reference in New Issue
	
	Block a user
	 Kavin
					Kavin