We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent 2ca64b8 commit c512955Copy full SHA for c512955
src/librustdoc/html/static/js/main.js
@@ -1286,7 +1286,10 @@ href="https://doc.rust-lang.org/${channel}/rustdoc/how-to-read-rustdoc.html\
1286
window.removeEventListener("mouseup", stopResize, false);
1287
removeClass(document.documentElement, "sidebar-resizing");
1288
};
1289
- const initResize = () => {
+ const initResize = e => {
1290
+ if (e.altKey || e.ctrlKey || e.metaKey || e.button !== 0) {
1291
+ return;
1292
+ }
1293
window.addEventListener("mousemove", resize, false);
1294
window.addEventListener("mouseup", stopResize, false);
1295
addClass(resizer, "active");
0 commit comments