diff --git a/4chan_x.user.js b/4chan_x.user.js index 24e702b99..1f9e74450 100644 --- a/4chan_x.user.js +++ b/4chan_x.user.js @@ -452,6 +452,9 @@ })(); dragstart = function(e) { var el, isTouching, o, rect, screenHeight, screenWidth; + if (e.type === 'mousedown' && e.button !== 0) { + return; + } e.preventDefault(); el = $.x('ancestor::div[contains(@class,"dialog")][1]', this); if (isTouching = e.type === 'touchstart') { diff --git a/lib/ui.coffee b/lib/ui.coffee index 517bc3965..65266bace 100644 --- a/lib/ui.coffee +++ b/lib/ui.coffee @@ -197,6 +197,8 @@ UI = do -> dragstart = (e) -> + if e.type is 'mousedown' and e.button isnt 0 # not LMB + return # prevent text selection e.preventDefault() el = $.x 'ancestor::div[contains(@class,"dialog")][1]', @