Multifile support in Volume Control. #2171
This commit is contained in:
parent
1d217f63eb
commit
085a0421cf
@ -16,7 +16,7 @@ Volume =
|
|||||||
name: 'Mouse Wheel Volume'
|
name: 'Mouse Wheel Volume'
|
||||||
cb: @node
|
cb: @node
|
||||||
|
|
||||||
return if BoardConfig.noAudio(g.BOARD.ID)
|
return if g.SITE.noAudio?(g.BOARD)
|
||||||
|
|
||||||
if Conf['Mouse Wheel Volume']
|
if Conf['Mouse Wheel Volume']
|
||||||
Callbacks.CatalogThread.push
|
Callbacks.CatalogThread.push
|
||||||
@ -60,12 +60,14 @@ Volume =
|
|||||||
Volume.inputs.volume.value = volume
|
Volume.inputs.volume.value = volume
|
||||||
|
|
||||||
node: ->
|
node: ->
|
||||||
return unless !BoardConfig.noAudio(@board.ID) and @file?.isVideo
|
return if g.SITE.noAudio?(@board)
|
||||||
$.on @file.thumb, 'wheel', Volume.wheel.bind(Header.hover) if @file.thumb
|
for file in @files when file.isVideo
|
||||||
$.on ($('.file-info', @file.text) or @file.link), 'wheel', Volume.wheel.bind(@file.thumbLink)
|
$.on file.thumb, 'wheel', Volume.wheel.bind(Header.hover) if file.thumb
|
||||||
|
$.on ($('.file-info', file.text) or file.link), 'wheel', Volume.wheel.bind(file.thumbLink)
|
||||||
|
return
|
||||||
|
|
||||||
catalogNode: ->
|
catalogNode: ->
|
||||||
{file} = @thread.OP
|
file = @thread.OP.files[0]
|
||||||
return unless file?.isVideo
|
return unless file?.isVideo
|
||||||
$.on @nodes.thumb, 'wheel', Volume.wheel.bind(Header.hover)
|
$.on @nodes.thumb, 'wheel', Volume.wheel.bind(Header.hover)
|
||||||
|
|
||||||
|
|||||||
@ -16,6 +16,7 @@ SW.yotsuba =
|
|||||||
|
|
||||||
isPrunedByAge: ({boardID}) -> boardID is 'f'
|
isPrunedByAge: ({boardID}) -> boardID is 'f'
|
||||||
areMD5sDeferred: ({boardID}) -> boardID is 'f'
|
areMD5sDeferred: ({boardID}) -> boardID is 'f'
|
||||||
|
noAudio: ({boardID}) -> BoardConfig.noAudio(boardID)
|
||||||
|
|
||||||
selectors:
|
selectors:
|
||||||
board: '.board'
|
board: '.board'
|
||||||
|
|||||||
Loading…
x
Reference in New Issue
Block a user