fix bug in WebM resetting
This commit is contained in:
parent
8f2f1aa536
commit
04b722e0ec
@ -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
|
||||
|
||||
@ -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'
|
||||
|
||||
Loading…
x
Reference in New Issue
Block a user