diff --git a/plugins/Sidebar/media/Sidebar.coffee b/plugins/Sidebar/media/Sidebar.coffee index 59ac6b5f..aea6dc72 100644 --- a/plugins/Sidebar/media/Sidebar.coffee +++ b/plugins/Sidebar/media/Sidebar.coffee @@ -37,6 +37,8 @@ class Sidebar extends Class # Detect dragging @fixbutton.on "mousedown touchstart", (e) => + if event.button > 0 # Right or middle click + return e.preventDefault() # Disable previous listeners diff --git a/plugins/Sidebar/media/all.js b/plugins/Sidebar/media/all.js index 2afbf5dd..a669a23f 100644 --- a/plugins/Sidebar/media/all.js +++ b/plugins/Sidebar/media/all.js @@ -237,6 +237,9 @@ window.initScrollable = function () { */ this.fixbutton.on("mousedown touchstart", (function(_this) { return function(e) { + if (event.button > 0) { + return; + } e.preventDefault(); _this.fixbutton.off("click touchstop touchcancel"); _this.fixbutton.off("mousemove touchmove");