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()
|
e.preventDefault()
|
||||||
Gallery.cb.advance()
|
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)()
|
toggle: -> (if Gallery.nodes then Gallery.cb.close else Gallery.build)()
|
||||||
blank: (e) -> Gallery.cb.close() if e.target is @
|
blank: (e) -> Gallery.cb.close() if e.target is @
|
||||||
toggleSlideshow: -> Gallery.cb[if Gallery.slideshow then 'stop' else 'start']()
|
toggleSlideshow: -> Gallery.cb[if Gallery.slideshow then 'stop' else 'start']()
|
||||||
|
|||||||
@ -46,7 +46,7 @@ ImageExpand =
|
|||||||
{file} = post
|
{file} = post
|
||||||
return if file.isExpanded and ImageCommon.onControls e
|
return if file.isExpanded and ImageCommon.onControls e
|
||||||
e.preventDefault()
|
e.preventDefault()
|
||||||
if file.fullImage?.paused
|
if !Conf['Autoplay'] and file.fullImage?.paused
|
||||||
file.fullImage.play()
|
file.fullImage.play()
|
||||||
else
|
else
|
||||||
ImageExpand.toggle post
|
ImageExpand.toggle post
|
||||||
|
|||||||
Loading…
x
Reference in New Issue
Block a user