controls need not prevent the keybinds from working
This commit is contained in:
parent
9ce0d0e209
commit
109bcebf3f
@ -112,7 +112,7 @@ Gallery =
|
|||||||
when 'Right'
|
when 'Right'
|
||||||
Gallery.cb.next
|
Gallery.cb.next
|
||||||
when 'Enter'
|
when 'Enter'
|
||||||
Gallery.cb.advance
|
Gallery.cb.advanceKey
|
||||||
when 'Left', ''
|
when 'Left', ''
|
||||||
Gallery.cb.prev
|
Gallery.cb.prev
|
||||||
|
|
||||||
@ -198,9 +198,9 @@ Gallery =
|
|||||||
next: -> Gallery.cb.open.call Gallery.images[+Gallery.nodes.current.dataset.id + 1]
|
next: -> Gallery.cb.open.call Gallery.images[+Gallery.nodes.current.dataset.id + 1]
|
||||||
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 @
|
||||||
|
advance: -> Gallery.cb.advanceKey() unless Gallery.nodes.current.controls
|
||||||
|
|
||||||
advance: ->
|
advanceKey: ->
|
||||||
if Gallery.nodes.current.controls then return
|
|
||||||
if Gallery.nodes.current.paused then return Gallery.nodes.current.play()
|
if Gallery.nodes.current.paused then return Gallery.nodes.current.play()
|
||||||
Gallery.cb.next()
|
Gallery.cb.next()
|
||||||
|
|
||||||
|
|||||||
Loading…
x
Reference in New Issue
Block a user