Only show previews for video
This commit is contained in:
parent
0b57961ff7
commit
85c0e99e16
1 changed files with 1 additions and 1 deletions
|
|
@ -728,7 +728,7 @@ function renderPlayerControls (state) {
|
|||
|
||||
// Handles a scrub hover (preview another position in the video)
|
||||
function handleScrubPreview (e) {
|
||||
if (!e.clientX) return
|
||||
if (!e.clientX || state.playing.type !== 'video') return
|
||||
dispatch('mediaMouseMoved')
|
||||
const windowWidth = document.querySelector('body').clientWidth
|
||||
const fraction = e.clientX / windowWidth
|
||||
|
|
|
|||
Loading…
Add table
Reference in a new issue