Don't unpause before contracting WebM / advancing in gallery unless Autoplay is off.
This commit is contained in:
parent
1e45c33be6
commit
257aa767f0
@ -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']()
|
||||
|
||||
@ -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
|
||||
|
||||
Loading…
x
Reference in New Issue
Block a user