fix video controls
This commit is contained in:
parent
52949b545e
commit
49d76b4177
@ -7705,15 +7705,15 @@
|
||||
TrashQueue.remove(el);
|
||||
} else {
|
||||
el = post.file.fullImage = $.el((isVideo ? 'video' : 'img'), {
|
||||
className: 'full-image',
|
||||
src: src || post.file.URL
|
||||
className: 'full-image'
|
||||
});
|
||||
if (isVideo) {
|
||||
el.loop = true;
|
||||
}
|
||||
$.on(el, 'error', ImageExpand.error);
|
||||
el.src = src || post.file.URL;
|
||||
}
|
||||
if (el.isVideo) {
|
||||
if (isVideo) {
|
||||
el.controls = Conf['Show Controls'];
|
||||
}
|
||||
position = el.controls ? thumb.parentNode : thumb;
|
||||
|
||||
@ -7724,15 +7724,15 @@
|
||||
TrashQueue.remove(el);
|
||||
} else {
|
||||
el = post.file.fullImage = $.el((isVideo ? 'video' : 'img'), {
|
||||
className: 'full-image',
|
||||
src: src || post.file.URL
|
||||
className: 'full-image'
|
||||
});
|
||||
if (isVideo) {
|
||||
el.loop = true;
|
||||
}
|
||||
$.on(el, 'error', ImageExpand.error);
|
||||
el.src = src || post.file.URL;
|
||||
}
|
||||
if (el.isVideo) {
|
||||
if (isVideo) {
|
||||
el.controls = Conf['Show Controls'];
|
||||
}
|
||||
position = el.controls ? thumb.parentNode : thumb;
|
||||
|
||||
@ -112,10 +112,10 @@ ImageExpand =
|
||||
else
|
||||
el = post.file.fullImage = $.el (if isVideo then 'video' else 'img'),
|
||||
className: 'full-image'
|
||||
src: src or post.file.URL
|
||||
el.loop = true if isVideo
|
||||
$.on el, 'error', ImageExpand.error
|
||||
el.controls = Conf['Show Controls'] if el.isVideo
|
||||
el.src = src or post.file.URL
|
||||
el.controls = Conf['Show Controls'] if isVideo
|
||||
position = if el.controls then thumb.parentNode else thumb
|
||||
$.after position, el unless el is position.nextSibling
|
||||
$.asap (-> isVideo or el.naturalHeight), ->
|
||||
|
||||
Loading…
x
Reference in New Issue
Block a user