fix bug in WebM resetting

This commit is contained in:
ccd0 2014-09-06 18:14:29 -07:00
parent b29685b622
commit 77a0082590
2 changed files with 2 additions and 2 deletions

View File

@ -158,7 +158,7 @@ ImageExpand =
TrashQueue.remove el
unless file.isHovered
$.queueTask(-> el.src = el.src) if /\.gif$/.test el.src
el.currentTime = 0 if isVideo
el.currentTime = 0 if isVideo and el.readyState >= el.HAVE_METADATA
else
el.src = src or file.URL
$.after thumb, el

View File

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