mirror of
				https://github.com/TeamPiped/Piped.git
				synced 2024-08-14 23:57:27 +00:00 
			
		
		
		
	Listen on the actual seekbar to calculate
This commit is contained in:
		
							parent
							
								
									7ce0c0fcc0
								
							
						
					
					
						commit
						974324fad7
					
				
					 1 changed files with 1 additions and 1 deletions
				
			
		| 
						 | 
					@ -715,7 +715,7 @@ export default {
 | 
				
			||||||
        },
 | 
					        },
 | 
				
			||||||
        setupSeekbarPreview() {
 | 
					        setupSeekbarPreview() {
 | 
				
			||||||
            if (!this.video.previewFrames) return;
 | 
					            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
 | 
					            // load the thumbnail preview when the user moves over the seekbar
 | 
				
			||||||
            seekBar.addEventListener("mousemove", e => {
 | 
					            seekBar.addEventListener("mousemove", e => {
 | 
				
			||||||
                const position = (e.offsetX / e.target.offsetWidth) * this.video.duration;
 | 
					                const position = (e.offsetX / e.target.offsetWidth) * this.video.duration;
 | 
				
			||||||
| 
						 | 
					
 | 
				
			||||||
		Loading…
	
	Add table
		Add a link
		
	
		Reference in a new issue