Let mouse wheel adjust volume anywhere in reformatted file info, not just in first link which may not be filename.

This commit is contained in:
ccd0 2017-10-07 14:49:56 -07:00
parent 43ba4c6a89
commit b17541bdeb

View File

@ -61,8 +61,8 @@ Volume =
node: -> node: ->
return unless @board.ID in ['gif', 'wsg'] and @file?.isVideo return unless @board.ID in ['gif', 'wsg'] and @file?.isVideo
$.on @file.thumb, 'wheel', Volume.wheel.bind(Header.hover) $.on @file.thumb, 'wheel', Volume.wheel.bind(Header.hover)
$.on $('a', @file.text), 'wheel', Volume.wheel.bind(@file.thumbLink) $.on ($('.file-info', @file.text) or @file.link), 'wheel', Volume.wheel.bind(@file.thumbLink)
catalogNode: -> catalogNode: ->
{file} = @thread.OP {file} = @thread.OP