mirror of
				https://github.com/TeamPiped/Piped.git
				synced 2025-10-31 04:32:01 +00:00 
			
		
		
		
	Fix for calculating right position in seekbar preview
This commit is contained in:
		| @@ -718,7 +718,7 @@ export default { | ||||
|             let seekBar = document.querySelector(".shaka-seek-bar-container"); | ||||
|             // load the thumbnail preview when the user moves over the seekbar | ||||
|             seekBar.addEventListener("mousemove", e => { | ||||
|                 const position = (this.video.duration * e.clientX) / seekBar.clientWidth; | ||||
|                 const position = (e.offsetX / e.target.offsetWidth) * this.video.duration; | ||||
|                 this.showSeekbarPreview(position * 1000); | ||||
|             }); | ||||
|             // hide the preview when the user stops hovering the seekbar | ||||
|   | ||||
		Reference in New Issue
	
	Block a user
	 Kavin
					Kavin