From 1aced791267b06cd520007605b119192cabd3ed4 Mon Sep 17 00:00:00 2001 From: ccd0 Date: Sun, 27 Jul 2014 13:56:30 -0700 Subject: [PATCH] show controls immediately for nonplaying videos --- src/Images/ImageExpand.coffee | 14 ++++++++------ 1 file changed, 8 insertions(+), 6 deletions(-) diff --git a/src/Images/ImageExpand.coffee b/src/Images/ImageExpand.coffee index 6686efa67..b72426404 100755 --- a/src/Images/ImageExpand.coffee +++ b/src/Images/ImageExpand.coffee @@ -206,13 +206,15 @@ ImageExpand = setupVideo: (post, playing, controls) -> {fullImage} = post.file + unless playing + fullImage.controls = controls + return fullImage.controls = false - if playing - $.asap (=> doc.contains fullImage), => - if !d.hidden and Header.isNodeVisible fullImage - fullImage.play() - else - post.file.wasPlaying = true + $.asap (=> doc.contains fullImage), => + if !d.hidden and Header.isNodeVisible fullImage + fullImage.play() + else + post.file.wasPlaying = true if controls ImageCommon.addControls fullImage