Don't unpause before contracting WebM / advancing in gallery unless Autoplay is off.

This commit is contained in:
ccd0 2015-10-26 23:03:08 -07:00
parent 1e45c33be6
commit 257aa767f0
2 changed files with 2 additions and 2 deletions

View File

@ -276,7 +276,7 @@ Gallery =
e.preventDefault()
Gallery.cb.advance()
advance: -> if Gallery.nodes.current.paused then Gallery.nodes.current.play() else Gallery.cb.next()
advance: -> if !Conf['Autoplay'] and Gallery.nodes.current.paused then Gallery.nodes.current.play() else Gallery.cb.next()
toggle: -> (if Gallery.nodes then Gallery.cb.close else Gallery.build)()
blank: (e) -> Gallery.cb.close() if e.target is @
toggleSlideshow: -> Gallery.cb[if Gallery.slideshow then 'stop' else 'start']()

View File

@ -46,7 +46,7 @@ ImageExpand =
{file} = post
return if file.isExpanded and ImageCommon.onControls e
e.preventDefault()
if file.fullImage?.paused
if !Conf['Autoplay'] and file.fullImage?.paused
file.fullImage.play()
else
ImageExpand.toggle post