GIF reset seems to require image visible in Chromium
This commit is contained in:
parent
c28abff25e
commit
c45ef1b844
@ -157,7 +157,7 @@ ImageExpand =
|
||||
# Expand already-loaded/ing picture.
|
||||
TrashQueue.remove el
|
||||
unless file.isHovered
|
||||
el.src = el.src if /\.gif$/.test el.src
|
||||
$.queueTask(-> el.src = el.src) if /\.gif$/.test el.src
|
||||
el.currentTime = 0 if isVideo
|
||||
else
|
||||
el.src = src or file.URL
|
||||
|
||||
@ -17,7 +17,7 @@ ImageHover =
|
||||
if el = file.fullImage
|
||||
el.id = 'ihover'
|
||||
TrashQueue.remove el
|
||||
el.src = el.src if /\.gif$/.test el.src
|
||||
$.queueTask(-> 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'),
|
||||
|
||||
Loading…
x
Reference in New Issue
Block a user