diff --git a/contrib/js/backlink.js b/contrib/js/backlink.js index 24f042d..bf524ca 100644 --- a/contrib/js/backlink.js +++ b/contrib/js/backlink.js @@ -275,12 +275,16 @@ function init(prefix) { e.addEventListener("mousedown", function(ev) { mouseDownX = ev.clientX; mouseDownY = ev.clientY; + ev.stopPropagation(); }); e.addEventListener("mouseup", function(ev) { + ev.stopPropagation(); var x = originalX + ev.clientX - mouseDownX var y = originalY + ev.clientY - mouseDownY rpl.moveTo(x, y); + originalX = x; + originalY = y; }); } diff --git a/contrib/static/nntpchan.js b/contrib/static/nntpchan.js index 310e826..9556b49 100644 --- a/contrib/static/nntpchan.js +++ b/contrib/static/nntpchan.js @@ -38,9 +38,9 @@ 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