set (expanded) clone to play if original was playing
This commit is contained in:
parent
3aa96b32f0
commit
c7227575cd
@ -26,10 +26,9 @@ ImageExpand =
|
|||||||
ImageExpand.expand @
|
ImageExpand.expand @
|
||||||
|
|
||||||
else if @file.isExpanded and @file.isVideo
|
else if @file.isExpanded and @file.isVideo
|
||||||
clone = @
|
ImageExpand.setupVideoControls @
|
||||||
ImageExpand.setupVideoControls clone
|
if !@origin.file.fullImage.paused or @origin.file.wasPlaying
|
||||||
unless clone.origin.file.fullImage.paused
|
$.queueTask => ImageExpand.play @
|
||||||
$.queueTask -> Video.start clone.file.fullImage
|
|
||||||
|
|
||||||
return
|
return
|
||||||
else if ImageExpand.on and !@isHidden and
|
else if ImageExpand.on and !@isHidden and
|
||||||
@ -172,11 +171,13 @@ ImageExpand =
|
|||||||
video = post.file.fullImage
|
video = post.file.fullImage
|
||||||
video.loop = true
|
video.loop = true
|
||||||
video.controls = Conf['Show Controls']
|
video.controls = Conf['Show Controls']
|
||||||
if Conf['Autoplay']
|
ImageExpand.play post if Conf['Autoplay']
|
||||||
if !d.hidden and Header.isNodeVisible video
|
|
||||||
Video.start video
|
play: (post) ->
|
||||||
else
|
if !d.hidden and Header.isNodeVisible post.file.fullImage
|
||||||
post.file.wasPlaying = true
|
Video.start post.file.fullImage
|
||||||
|
else
|
||||||
|
post.file.wasPlaying = true
|
||||||
|
|
||||||
videoCB: do ->
|
videoCB: do ->
|
||||||
# dragging to the left contracts the video
|
# dragging to the left contracts the video
|
||||||
|
|||||||
Loading…
x
Reference in New Issue
Block a user