diff --git a/contrib/js/reply.js b/contrib/js/reply.js index 6fdec9f..0498d5e 100644 --- a/contrib/js/reply.js +++ b/contrib/js/reply.js @@ -374,16 +374,16 @@ function init(prefix) { e.addEventListener("dragstart", function(ev) { console.log(ev); - mouseDownX = ev.clientX; - mouseDownY = ev.clientY; + mouseDownX = ev.screenX; + mouseDownY = ev.screenY; if(!ev.shiftKey) { ev.preventDefault(); } }, false); e.addEventListener("dragend", function(ev) { - var dx = ev.clientX - mouseDownX; - var dy = ev.clientY - mouseDownY; + var dx = ev.screenX - mouseDownX; + var dy = ev.screenY - mouseDownY; console.log(dx, dy); rpl.translate(dx, dy); }, false); diff --git a/contrib/static/nntpchan.js b/contrib/static/nntpchan.js index b9e8cac..b9ef3a8 100644 --- a/contrib/static/nntpchan.js +++ b/contrib/static/nntpchan.js @@ -82,7 +82,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