From 0e383113b98d0ca03fb50c4f9f59c19d5d4954d0 Mon Sep 17 00:00:00 2001 From: ccd0 Date: Tue, 26 May 2015 00:15:19 -0700 Subject: [PATCH] Fix alt+click to watch thread highlighting catalog thumbnail in Firefox. --- src/Monitoring/ThreadWatcher.coffee | 3 +++ 1 file changed, 3 insertions(+) diff --git a/src/Monitoring/ThreadWatcher.coffee b/src/Monitoring/ThreadWatcher.coffee index dc3017e3a..00dabd13c 100755 --- a/src/Monitoring/ThreadWatcher.coffee +++ b/src/Monitoring/ThreadWatcher.coffee @@ -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