restart .webm as well

This commit is contained in:
ccd0 2014-08-31 15:03:23 -07:00
parent dbf368d357
commit 16224c479a
2 changed files with 4 additions and 1 deletions

View File

@ -156,7 +156,9 @@ ImageExpand =
if file.fullImage
# Expand already-loaded/ing picture.
TrashQueue.remove el
el.src = el.src if /\.gif$/.test el.src and !file.isHovered
unless file.isHovered
el.src = el.src if /\.gif$/.test el.src
el.currentTime = 0 if isVideo
else
el.src = src or file.URL
$.after thumb, el

View File

@ -18,6 +18,7 @@ ImageHover =
el.id = 'ihover'
TrashQueue.remove el
el.src = el.src if /\.gif$/.test el.src
el.currentTime = 0 if isVideo
else
file.fullImage = el = $.el (if isVideo then 'video' else 'img'),
className: 'full-image'