Sync replaced WebM thumbnails with hover preview. #903

This commit is contained in:
ccd0 2016-05-17 05:29:09 -07:00
parent 17dfb391d7
commit c361a6bd07

View File

@ -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