restart .webm as well
This commit is contained in:
parent
dbf368d357
commit
16224c479a
@ -156,7 +156,9 @@ ImageExpand =
|
|||||||
if file.fullImage
|
if file.fullImage
|
||||||
# Expand already-loaded/ing picture.
|
# Expand already-loaded/ing picture.
|
||||||
TrashQueue.remove el
|
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
|
else
|
||||||
el.src = src or file.URL
|
el.src = src or file.URL
|
||||||
$.after thumb, el
|
$.after thumb, el
|
||||||
|
|||||||
@ -18,6 +18,7 @@ ImageHover =
|
|||||||
el.id = 'ihover'
|
el.id = 'ihover'
|
||||||
TrashQueue.remove el
|
TrashQueue.remove el
|
||||||
el.src = el.src if /\.gif$/.test el.src
|
el.src = el.src if /\.gif$/.test el.src
|
||||||
|
el.currentTime = 0 if isVideo
|
||||||
else
|
else
|
||||||
file.fullImage = el = $.el (if isVideo then 'video' else 'img'),
|
file.fullImage = el = $.el (if isVideo then 'video' else 'img'),
|
||||||
className: 'full-image'
|
className: 'full-image'
|
||||||
|
|||||||
Loading…
x
Reference in New Issue
Block a user