Sync replaced WebM thumbnails with hover preview. #903
This commit is contained in:
parent
17dfb391d7
commit
c361a6bd07
@ -43,7 +43,9 @@ ImageHover =
|
|||||||
el.loop = true
|
el.loop = true
|
||||||
el.controls = false
|
el.controls = false
|
||||||
Volume.setup el
|
Volume.setup el
|
||||||
el.play() if Conf['Autoplay']
|
if Conf['Autoplay']
|
||||||
|
el.play()
|
||||||
|
@currentTime = el.currentTime if @nodeName is 'VIDEO'
|
||||||
[width, height] = (+x for x in file.dimensions.split 'x')
|
[width, height] = (+x for x in file.dimensions.split 'x')
|
||||||
{left, right} = @getBoundingClientRect()
|
{left, right} = @getBoundingClientRect()
|
||||||
maxWidth = Math.max left, doc.clientWidth - right
|
maxWidth = Math.max left, doc.clientWidth - right
|
||||||
|
|||||||
Loading…
x
Reference in New Issue
Block a user