Fix alt+click to watch thread highlighting catalog thumbnail in Firefox.

This commit is contained in:
ccd0 2015-05-26 00:15:19 -07:00
parent 6227627f95
commit 0e383113b9

View File

@ -84,6 +84,9 @@ ThreadWatcher =
return unless e.button is 0 and e.altKey
ThreadWatcher.toggle @thread
e.preventDefault()
$.on @nodes.thumb.parentNode, 'mousedown', (e) ->
# Prevent highlighting thumbnail in Firefox.
e.preventDefault() if e.button is 0 and e.altKey
ready: ->
$.off d, '4chanXInitFinished', ThreadWatcher.ready