diff --git a/4chan_x.js b/4chan_x.js index 5a85501d8..abc21496f 100644 --- a/4chan_x.js +++ b/4chan_x.js @@ -1859,7 +1859,7 @@ return _results; }, toggle: function(e) { - if (e.shiftKey || e.altKey || e.ctrlKey) { + if (e.shiftKey || e.altKey || e.ctrlKey || e.button !== 0) { return; } e.preventDefault(); diff --git a/script.coffee b/script.coffee index cb13637bc..a8583b799 100644 --- a/script.coffee +++ b/script.coffee @@ -1412,8 +1412,7 @@ imgExpand = $.bind thumb.parentNode, 'click', imgExpand.cb.toggle if imgExpand.on then imgExpand.expand thumb.parentNode toggle: (e) -> - #TODO middle click (chrome) - return if e.shiftKey or e.altKey or e.ctrlKey + return if e.shiftKey or e.altKey or e.ctrlKey or e.button isnt 0 e.preventDefault() imgExpand.toggle e.target all: (e) ->