diff --git a/contrib/js/backlink.js b/contrib/js/backlink.js index af59f2a..6c3994a 100644 --- a/contrib/js/backlink.js +++ b/contrib/js/backlink.js @@ -346,7 +346,7 @@ function init(prefix) { e.addEventListener("dragstart", function(ev) { mouseDownX = ev.clientX; mouseDownY = ev.clientY; - if (!keyDown) { + if (keyDown) { ev.preventDefault(); } }, false); @@ -359,7 +359,7 @@ function init(prefix) { rpl.moveTo(x, y); originalX = x; originalY = y; - if (!keyDown) { + if (keyDown) { ev.preventDefault(); } }, false); diff --git a/contrib/static/nntpchan.js b/contrib/static/nntpchan.js index 65de2e4..f0b0f6e 100644 --- a/contrib/static/nntpchan.js +++ b/contrib/static/nntpchan.js @@ -43,7 +43,7 @@ parent.appendChild(wrapper);parent.backlink=false;},function(msg){var wrapper=do parent.backlink=true;}};parent.backlink=true;} function inject_hover_for_element(elem){var elems=elem.getElementsByClassName("backlink");var ls=[];var l=elems.length;for(var idx=0;idx